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

Goetz Lindenmaier goetz at openjdk.org
Tue Dec 9 08:58:10 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)

Hi Roland,
"Ran GHA Sanity Checks (passed), jtreg tier1 tests (passed) and related tests (passed) on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:"

My browser shows in the tab a green tick. That tells me as approver that tier1 has passed on linux-x64, macos-x64 and windows-x64. This are the basic sanity tests.  You don't need to mention this.
Running tier1 on linux-aarch is an extra test. Thanks for running this.
If you spend time on running tests, run tier2!  If you run related tests, run all of a larger set, maybe make test TEST=test/jdk/java/util/concurrent/ ?

I run tier 1-4, some with -Xcomp, some sap tests, jck/tck, on ppc, alpine, aix and the mainstream platforms, etc on all my backports.

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

PR Comment: https://git.openjdk.org/jdk25u-dev/pull/65#issuecomment-3631085967


More information about the jdk-updates-dev mailing list