RFR: 8322732: ForkJoinPool may underutilize cores in async mode [v2]

Doug Lea dl at openjdk.org
Wed May 22 23:36:02 UTC 2024


On Thu, 16 May 2024 10:29:48 GMT, Sunmisc Unsafe <duke at openjdk.org> wrote:

>> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Address review comments
>
> Maybe I don't quite understand, or I don't have proof, But wouldn't it be better if invokeAll in FIFO mode (asyncMode) traverses the Future list as a FIFO (currently it traverses in LIFO order)

@sunmisc invokeAll doesn't specify an exec or join order; forward exec snf inverse normally uses fewest resources.

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

PR Comment: https://git.openjdk.org/jdk/pull/19131#issuecomment-2125944250


More information about the core-libs-dev mailing list