On Wed, 9 Apr 2025 08:03:44 GMT, Viktor Klang <vkl...@openjdk.org> wrote:

>> It already does, no CAS if the current value is the new value.
>
> I meant the park permit. :)

getAndSetParkPermit isn't changed in this PR. If the park permit is already 
granted then getAndSetParkPermit(true) doesn't do anything. More generally, 
parkTimeoutExpired is just a reduced unpark, only added so that we can do a 
lazy rather than internal submit for the less common case that the timeout 
expires.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24030#discussion_r2034760820

Reply via email to