-
Bug
-
Resolution: Fixed
-
P3
-
24, 25
-
b26
Thread locals have unbounded lifetime and don't play well with thread pools. A ForkJoinPool can optionally be created with worker threads that clear thread locals between tasks, thus avoiding a build up of thread locals left behind by tasks executed in the pool. The common pool is setup to do this. Clearing all thread locals can lead to memory leaks for thread locals that are keeping native memory alive and don't have a Cleaner or other means to free the memory. This is the case with TerminatingThreadLocals that no longer have a Cleaner since JDK-8344882.
- duplicates
-
JDK-8358054 Memory leak in getTemporaryDirectBuffer when used with the common fork-join pool
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/ac9af69e
-
Review(master) openjdk/jdk/25457