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

> 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?

Parking (including timed-parking) is much simpler, and okay to be unparked 
during transition. We have a lot of tests for this.  Timed-Object.wait is more 
complex due to the two block states (the equivalent of Thread.State 
TIMED_WAITING and BLOCKED), and timed and unblocking working asynchronously.

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

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

Reply via email to