Re: Class loader leaked when ForkJoinPool is used in loaded class, with Java 19+

2024-03-06 Thread Viktor Klang
rch 2024 13:23 To: core-libs-...@openjdk.java.net Subject: Class loader leaked when ForkJoinPool is used in loaded class, with Java 19+ Hi all, after moving our application to Java 21 (up from Java 17), we noticed a class loader leak. A memory snapshot points to a ProtectionDomain

Class loader leaked when ForkJoinPool is used in loaded class, with Java 19+

2024-03-04 Thread S A
Hi all, after moving our application to Java 21 (up from Java 17), we noticed a class loader leak. A memory snapshot points to a ProtectionDomain object held by a ForkJoinWorkerThread, the protection domain holds the class loader and prevents GC. To reproduce outside of our application, we use th