[jdk25u-dev] RFR: 8368500: ContextClassLoader cannot be reset on threads in ForkJoinPool.commonPool()
duke
duke at openjdk.org
Wed Dec 10 15:36:45 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)
@rm-gh-8
Your change (at version a38407f6c6a328ac56aae933eb42cf77e1fe19eb) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk25u-dev/pull/65#issuecomment-3637666391
More information about the jdk-updates-dev
mailing list