RFR: 8321270: Virtual Thread.yield consumes parking permit [v2]

Alan Bateman alanb at openjdk.org
Wed Dec 6 07:58:35 UTC 2023


On Wed, 6 Dec 2023 02:58:19 GMT, David Holmes <dholmes at openjdk.org> wrote:

> The key point of this change is to split RUNNABLE into two states to indicated "runnable after yielding" and "runnable after being unparked".

That's right. This comes up with upcoming changes for monitors too - in that case it is important that a virtual thread that continues after blocking on monitorenter doesn't consume its parking permit.

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

PR Comment: https://git.openjdk.org/jdk/pull/16953#issuecomment-1842310534


More information about the core-libs-dev mailing list