[jdk21u-dev] RFR: 8362123: ClassLoader Leak via Executors.newSingleThreadExecutor(...)

Chris Dennis duke at openjdk.org
Fri Oct 17 13:36:30 UTC 2025


On Thu, 16 Oct 2025 17:26:09 GMT, Chris Dennis <duke at openjdk.org> wrote:

> This is a backport of d5a207994b9c374e6638e57826326f8f4593b96b from openjdk/jdk which is a bug-fix of JDK-8362123.

This isn't adding a new public (API) method it's just adding a missing override of an existing public method in a static inner class of `Executors`.

The bug was introduced when the `Executors.newSingleThreadExecutor(...)` moved from a `finalize()` based approach for last chance cleanup to a `Cleaner` based one. The commit that introduced it was therefore 2e78d838a5e55e3ef68bc8df2b40615e8bdb0389 (JDK-8302899). Unfortunately, I don't think I can create a link reflecting this as I lack direct JBS access due to being only a Contributor.

-------------

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2346#issuecomment-3415646284


More information about the jdk-updates-dev mailing list