Skip to content

Commit da2d7a0

Browse files
kabutzAlan Bateman
authored andcommitted
8344595: State transitions in internal VirtualThread comment needs to be updated
Reviewed-by: alanb
1 parent 22a39dc commit da2d7a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/java.base/share/classes/java/lang/VirtualThread.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ final class VirtualThread extends BaseVirtualThread {
108108
* UNBLOCKED -> RUNNING // continue execution after blocked on monitor enter
109109
*
110110
* RUNNING -> WAITING // transitional state during wait on monitor
111-
* WAITING -> WAITED // waiting on monitor
112-
* WAITED -> BLOCKED // notified, waiting to be unblocked by monitor owner
113-
* WAITED -> UNBLOCKED // timed-out/interrupted
111+
* WAITING -> WAIT // waiting on monitor
112+
* WAIT -> BLOCKED // notified, waiting to be unblocked by monitor owner
113+
* WAIT -> UNBLOCKED // timed-out/interrupted
114114
*
115115
* RUNNING -> TIMED_WAITING // transition state during timed-waiting on monitor
116-
* TIMED_WAITING -> TIMED_WAITED // timed-waiting on monitor
117-
* TIMED_WAITED -> BLOCKED // notified, waiting to be unblocked by monitor owner
118-
* TIMED_WAITED -> UNBLOCKED // timed-out/interrupted
116+
* TIMED_WAITING -> TIMED_WAIT // timed-waiting on monitor
117+
* TIMED_WAIT -> BLOCKED // notified, waiting to be unblocked by monitor owner
118+
* TIMED_WAIT -> UNBLOCKED // timed-out/interrupted
119119
*
120120
* RUNNING -> YIELDING // Thread.yield
121121
* YIELDING -> YIELDED // cont.yield successful, may be scheduled to continue

0 commit comments

Comments
 (0)