RFR: 8351927: Change VirtualThread implementation to use use FJP delayed task handling
Alan Bateman
alanb at openjdk.org
Wed Apr 9 08:19:36 UTC 2025
On Wed, 9 Apr 2025 08:03:44 GMT, Viktor Klang <vklang at 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
More information about the serviceability-dev
mailing list