[jdk25u-dev] Integrated: 8368500: ContextClassLoader cannot be reset on threads in ForkJoinPool.commonPool()

Roland Mesde duke at openjdk.org
Wed Dec 10 16:19:19 UTC 2025


On Thu, 4 Dec 2025 16:51:24 GMT, Roland Mesde <duke at openjdk.org> wrote:

> Backporting JDK-8368500: ContextClassLoader cannot be reset on threads in ForkJoinPool.commonPool()
> 
> For parity with Oracle JDK.
> 
> With the Security Manager permanently disabled in JDK 24, setCCL allows setting a custom context class loader but prevents resetting it back to the system class loader before executing subsequent task code. This change relaxes the restriction to allow resetting to the system class loader.
> 
> Ran GHA Sanity Checks (passed), jtreg tier1 tests (passed) and related tests (passed) on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
> 
> (Passed) - make test-tier1
> (Passed) - make test TEST=test/jdk/java/util/concurrent/forkjoin/ContextClassLoaderTest.java
> 
> Results are attached.
> 
> [linux-aarch64-jtreg-tier1.log](https://github.com/user-attachments/files/23941590/linux-aarch64-jtreg-tier1.log)
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/23941591/linux-aarch64-specific-test.log)
> [linux-x64-jtreg-tier1.log](https://github.com/user-attachments/files/23941592/linux-x64-jtreg-tier1.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/23941594/linux-x64-specific-test.log)
> [macos-aarch64-jtreg-tier1.log](https://github.com/user-attachments/files/23941596/macos-aarch64-jtreg-tier1.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/23941597/macos-aarch64-specific-test.log)
> [windows-x64-jtreg-tier1.log](https://github.com/user-attachments/files/23964655/windows-x64-jtreg-tier1.log)
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/23941598/windows-x64-specific-test.log)

This pull request has now been integrated.

Changeset: dcd89eb9
Author:    Roland Mesde <mesde at amazon.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk25u-dev/commit/dcd89eb9b1dfe6fd60370731b4f94b1ec6d0d359
Stats:     60 lines in 2 files changed: 56 ins; 2 del; 2 mod

8368500: ContextClassLoader cannot be reset on threads in ForkJoinPool.commonPool()

Backport-of: 6f8d07ae21e49f87f64a5d4e10c930c4447ec8b6

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

PR: https://git.openjdk.org/jdk25u-dev/pull/65


More information about the jdk-updates-dev mailing list