mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-13 11:55:38 +00:00
8283101: serviceability/jvmti/thread/GetFrameCount/framecnt01/framecnt01.java failing #VirtualThread-Frozen: number of frames expected: 14, got: 9
Reviewed-by: sspitsyn, kevinw
This commit is contained in:
parent
97c5a64d5c
commit
c206f28629
@ -74,7 +74,9 @@ public class framecnt01 {
|
||||
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);
|
||||
@ -95,7 +97,10 @@ public class framecnt01 {
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user