On Wed, 27 Nov 2024 16:17:46 GMT, Doug Lea <d...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java line 
>> 1272:
>> 
>>> 1270:                 if ((interrupted |= Thread.interrupted()) && 
>>> interruptible)
>>> 1271:                     break;
>>> 1272:                 spins = postSpins = (byte)((postSpins << 1) | 1);
>> 
>> @DougLea Any specific reason to move the updates to `spins` and `postSpins` 
>> to after the park?
>
> Just to improve clarity after the exceptional and break cases

Makes sense—thanks

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22396#discussion_r1861209190

Reply via email to