RFR: 8319447: Improve performance of delayed task handling [v6]
Doug Lea
dl at openjdk.org
Mon Mar 3 12:37:57 UTC 2025
On Sun, 2 Mar 2025 15:49:26 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Reduce volatile reads
>
> src/java.base/share/classes/java/util/concurrent/DelayScheduler.java line 255:
>
>> 253: U.park(false, parkTime);
>> 254: }
>> 255: q = pending;
>
> Does this "win" over a continue; here?
A continue might be faster/nicer, but can't use it here because even if no pending, still must check pool shutdown status,
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23702#discussion_r1977446643
More information about the core-libs-dev
mailing list