RFR: 8328366: Thread.setContextClassloader from thread in FJP commonPool task no longer works after JDK-8327501

Alan Bateman alanb at openjdk.org
Thu Apr 4 18:10:09 UTC 2024


On Tue, 19 Mar 2024 12:16:29 GMT, Viktor Klang <vklang at openjdk.org> wrote:

> This is a draft PR with a potential solution to 8328366 without regressing 8327501.
> 
> @DougLea To avoid regressions in the future, where would regression tests for this ideally be located?

The change looks okay. It's unfortunate we didn't catch this but you've added a test. As a general point, I hope these tasks that are running in the common pool (or any thread pool for that matter) are resetting the TCCL before they complete.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18374#pullrequestreview-1980782195


More information about the core-libs-dev mailing list