On Fri, 16 Jan 2026 01:50:50 GMT, David Holmes <[email protected]> wrote:

> @pchilano I took a look at this out of interest but there is nothing Hotspot 
> related to review. The state machine for VTs is too complex for me to comment 
> on the actual fix - though I understand how the timedWaitLock forces the 
> calls to be serialized.
> 
> It did make we wonder why the timed-park doesn't need any locking. Can't it 
> have a similar problem if the virtual thread is unparked before the carrier 
> can set the state to TIMED_PARK?
>
Thanks for looking at this anyway David.
Yes, that case is fine. Just to add to Alan's answer, the unparker can set 
`parkPermit` but it won't be able to change the state and submit the vthread to 
run again while in `TIMED_PARKING` state.

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

PR Comment: https://git.openjdk.org/jdk/pull/29255#issuecomment-3760993471

Reply via email to