On Sun, 2 Mar 2025 15:49:26 GMT, Viktor Klang <vkl...@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

Reply via email to