eclipse-ee4j / glassfish-hk2

Dynamic dependency injection framework
https://eclipse-ee4j.github.io/glassfish-hk2
Other
85 stars 57 forks source link

Fixes memory leak in per-thread context #965

Closed avpinchuk closed 9 months ago

avpinchuk commented 9 months ago

The PerThreadContextWrapper is never cleaned up because cleaning action hold reference to it and thus he never become phantom reachable and cleaning action will not be invoked automatically.

This closes #949, eclipse-ee4j/jersey#5486 and perhaps eclipse-ee4j/glassfish#24672