RFR: 8362123: ClassLoader Leak via Executors.newSingleThreadExecutor(...)
Chris Dennis
duke at openjdk.org
Fri Sep 26 15:01:33 UTC 2025
On Mon, 14 Jul 2025 15:49:04 GMT, Chris Dennis <duke at openjdk.org> wrote:
> Executors shutdown via `shutdownNow()` should have their cleanables cleaned to prevent a classloader leak. This can happen if a classloader exists that both references the wrapped executor and is referenced by the delegate executor.
>
> To quote @Martin-Buchholz:
>> BTW: I find Cleaners much harder to use than old finalize, and it looks like I'm not the only one!
Covered under my employment by IBM. I've set the author email on my commits to my IBM address, and I can be reached there for validation reasons if necessary. My Github user is also a member of the IBM Github organization.
@robilad : Apologies for the direct invoke, but I've seen you facilitate this process before, so hope this is still the right way to bump things:
I've waited a "few business days" but have seen no movement on the OCA verification, and have noticed no verification email inbound to me (chris.w.dennis at ibm.com).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26296#issuecomment-3070092601
PR Comment: https://git.openjdk.org/jdk/pull/26296#issuecomment-3096756414
More information about the core-libs-dev
mailing list