Skip to content

Fix PreDestroyMonitor memory leak

Compare
Choose a tag to compare
@tcellucci tcellucci released this 26 Apr 18:07
· 33 commits to master since this release
c1f4bb1

fixes a memory leak caused by unscoped instances injected via Provider. The situation commonly occurs when a provider is declared for a type that implements AutoCloseable or is annotated with '@PreDestroy'. At runtime, the injected instances are bound with 'no scope' by Guice, leading to a large number of cleanup actions pointing to potentially the same object.