Skip to content

Commit b69a40f

Browse files
committed
add comment in test
1 parent 39d7ac7 commit b69a40f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/jdk/java/lang/Thread/virtual/stress/NotifiedThenTimedOutWait.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ private static void race2(int iterations) throws InterruptedException {
110110
}
111111
});
112112

113+
// We tested with a platform thread in race1. Here we
114+
// use a vthread to exercise different timing behavior.
113115
Thread vthread2 = Thread.startVirtualThread(() -> {
114116
for (int i = 0; i < iterations; i++) {
115117
start.arriveAndAwaitAdvance();

0 commit comments

Comments
 (0)