RFR: 8373120: Virtual thread stuck in BLOCKED state

Alan Bateman alanb at openjdk.org
Fri Jan 16 07:09:46 UTC 2026


On Fri, 16 Jan 2026 01:50:50 GMT, David Holmes <dholmes at openjdk.org> 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


More information about the core-libs-dev mailing list