RFR: 8344773: SM cleanup in ForkJoinPool

Alan Bateman alanb at openjdk.org
Sat Nov 23 12:11:15 UTC 2024


On Fri, 22 Nov 2024 14:13:19 GMT, Doug Lea <dl 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.

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

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


More information about the core-libs-dev mailing list