8344595: State transitions in internal VirtualThread comment needs to be updated

Reviewed-by: alanb
This commit is contained in:
Dr Heinz M. Kabutz 2024-11-20 20:01:37 +00:00 committed by Alan Bateman
parent 22a39dc858
commit da2d7a09f9

View File

@ -108,14 +108,14 @@ final class VirtualThread extends BaseVirtualThread {
* UNBLOCKED -> RUNNING // continue execution after blocked on monitor enter
*
* RUNNING -> WAITING // transitional state during wait on monitor
* WAITING -> WAITED // waiting on monitor
* WAITED -> BLOCKED // notified, waiting to be unblocked by monitor owner
* WAITED -> UNBLOCKED // timed-out/interrupted
* WAITING -> WAIT // waiting on monitor
* WAIT -> BLOCKED // notified, waiting to be unblocked by monitor owner
* WAIT -> UNBLOCKED // timed-out/interrupted
*
* RUNNING -> TIMED_WAITING // transition state during timed-waiting on monitor
* TIMED_WAITING -> TIMED_WAITED // timed-waiting on monitor
* TIMED_WAITED -> BLOCKED // notified, waiting to be unblocked by monitor owner
* TIMED_WAITED -> UNBLOCKED // timed-out/interrupted
* TIMED_WAITING -> TIMED_WAIT // timed-waiting on monitor
* TIMED_WAIT -> BLOCKED // notified, waiting to be unblocked by monitor owner
* TIMED_WAIT -> UNBLOCKED // timed-out/interrupted
*
* RUNNING -> YIELDING // Thread.yield
* YIELDING -> YIELDED // cont.yield successful, may be scheduled to continue