mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8321270: Virtual Thread.yield consumes parking permit
Reviewed-by: sspitsyn
This commit is contained in:
parent
0b0fa47f84
commit
29d7a22348
4 changed files with 139 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue