Re: ClassLoader Leak via Executors.newSingleThreadExecutor(...)

2025-07-15 Thread Chris Dennis
Apologies, that description is pretty lousy. A more explicit description of the leak (the one in my test in https://github.com/openjdk/jdk/pull/26296) would be: A class loaded by classloader 'C' statically references an Executor created via newSingleThreadExecutor(threadFactory). The ThreadFactory

Re: ClassLoader Leak via Executors.newSingleThreadExecutor(...)

2025-07-15 Thread Alan Bateman
On 11/07/2025 15:42, Chris Dennis wrote: Hi All, I believe I've identified a bug in Executors.AutoShutdownDelegatedExecutorService that can trigger a classloader leak even in the presence of "correct" Executor lifecycling. AutoShutdownDelegatedExecutorService only unlinks the PhantomReferenc

Re: ClassLoader Leak via Executors.newSingleThreadExecutor(...)

2025-07-14 Thread Viktor Klang
x. Cheers, √ Viktor Klang Software Architect, Java Platform Group Oracle From: core-libs-dev on behalf of Chris Dennis Sent: Friday, 11 July 2025 16:42 To: core-libs-dev Subject: ClassLoader Leak via Executors.newSingleThreadExecutor(...) Hi All, I believe I've i

ClassLoader Leak via Executors.newSingleThreadExecutor(...)

2025-07-11 Thread Chris Dennis
Hi All, I believe I've identified a bug in Executors.AutoShutdownDelegatedExecutorService that can trigger a classloader leak even in the presence of "correct" Executor lifecycling. AutoShutdownDelegatedExecutorService only unlinks the PhantomReference used for cleanup handling when it is shutdown