8321270: Virtual Thread.yield consumes parking permit

Reviewed-by: sspitsyn
This commit is contained in:
Alan Bateman 2023-12-07 11:41:41 +00:00
parent 0b0fa47f84
commit 29d7a22348
4 changed files with 139 additions and 79 deletions

View file

@ -523,15 +523,16 @@ class java_lang_VirtualThread : AllStatic {
enum {
NEW = 0,
STARTED = 1,
RUNNABLE = 2,
RUNNING = 3,
PARKING = 4,
PARKED = 5,
PINNED = 6,
TIMED_PARKING = 7,
TIMED_PARKED = 8,
TIMED_PINNED = 9,
RUNNING = 2,
PARKING = 3,
PARKED = 4,
PINNED = 5,
TIMED_PARKING = 6,
TIMED_PARKED = 7,
TIMED_PINNED = 8,
UNPARKED = 9,
YIELDING = 10,
YIELDED = 11,
TERMINATED = 99,
// additional state bits