[jdk25u-dev] RFR: 8368500: ContextClassLoader cannot be reset on threads in ForkJoinPool.commonPool()
Roland Mesde
duke at openjdk.org
Tue Dec 9 22:41:14 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)
Adding related tests:
(Passed) - make test TEST=test/jdk/java/util/concurrent
[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/24065087/linux-aarch64-specific-test.log)
[linux-x64-specific-test.log](https://github.com/user-attachments/files/24065088/linux-x64-specific-test.log)
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/24065089/macos-aarch64-specific-test.log)
[windows-x64-specific-test.log](https://github.com/user-attachments/files/24065090/windows-x64-specific-test.log)
-------------
PR Comment: https://git.openjdk.org/jdk25u-dev/pull/65#issuecomment-3634578376
More information about the jdk-updates-dev
mailing list