RFR: 8344773: SM cleanup in ForkJoinPool

Doug Lea dl at openjdk.org
Sun Nov 24 14:16:15 UTC 2024


On Sat, 23 Nov 2024 12:08:24 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Complete the SM cleanup in java.util.concurrent that was deferred during other FJP updates
>
> src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java line 83:
> 
>> 81:         if (handler != null)
>> 82:             super.setUncaughtExceptionHandler(handler);
>> 83:         if (useSystemClassLoader & !clearThreadLocals) // else done by Thread ctor
> 
> It might be clearer to use a conditional-and here although it doesn't make any difference here.

I agree that "&&" would be clearer. Will do.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22324#discussion_r1855460118


More information about the core-libs-dev mailing list