RFR: 8336707: Contention of ForkJoinPool grows when stealing works [v29]

Viktor Klang vklang at openjdk.org
Wed Nov 20 10:39:25 UTC 2024


On Tue, 19 Nov 2024 19:12:29 GMT, Doug Lea <dl at openjdk.org> wrote:

>> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 4082:
>> 
>>> 4080:             AccessController.doPrivileged(new PrivilegedAction<>() {
>>> 4081:                     public ForkJoinPool run() {
>>> 4082:                         return new ForkJoinPool((byte)0); }});
>> 
>> @AlanBateman Any recommendation as to what is ideal here with SM removed? /cc @DougLea
>
> I  moved this to end so that in next pass with SM removed, the static init will end with just:
> common = new ForkJoinPool((byte)0).
> (Which will be sure to be done after all the other static init finiahes.)

@DougLea I must've forgotten about addressing SM separately. 👍

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21507#discussion_r1850050926


More information about the core-libs-dev mailing list