Skip to content

Commit

Permalink
8283101: serviceability/jvmti/thread/GetFrameCount/framecnt01/framecn…
Browse files Browse the repository at this point in the history
…t01.java failing #VirtualThread-Frozen: number of frames expected: 14, got: 9

Reviewed-by: sspitsyn, kevinw
  • Loading branch information
lmesnik committed Nov 4, 2022
1 parent 97c5a64 commit c206f28
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public static void main(String args[]) throws Exception {
Thread.sleep(1);
}
// Let vthread1 to park
Thread.sleep(100);
while(vThread1.getState() != Thread.State.WAITING) {
Thread.sleep(1);
}

// this is too fragile, implementation can change at any time.
checkFrames(vThread1, false, 14);
Expand All @@ -95,7 +97,10 @@ public static void main(String args[]) throws Exception {
while (!pThread1Started) {
Thread.sleep(1);
}
Thread.sleep(10);

while(pThread1.getState() != Thread.State.WAITING) {
Thread.sleep(1);
}
checkFrames(pThread1, false, 5);
LockSupport.unpark(pThread1);
pThread1.join();
Expand Down

1 comment on commit c206f28

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.