mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8259954: gc/shenandoah/mxbeans tests fail with -Xcomp
Reviewed-by: rkennke, zgu
This commit is contained in:
parent
6ce0799b66
commit
c3c6662528
2 changed files with 12 additions and 2 deletions
|
@ -159,7 +159,12 @@ public class TestChurnNotifications {
|
||||||
|
|
||||||
System.gc();
|
System.gc();
|
||||||
|
|
||||||
Thread.sleep(1000);
|
// Wait until notifications start arriving, and then wait some more
|
||||||
|
// to catch the ones arriving late.
|
||||||
|
while (churnBytes.get() == 0) {
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
Thread.sleep(5000);
|
||||||
|
|
||||||
long actual = churnBytes.get();
|
long actual = churnBytes.get();
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,12 @@ public class TestPauseNotifications {
|
||||||
sink = new int[size];
|
sink = new int[size];
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.sleep(1000);
|
// Wait until notifications start arriving, and then wait some more
|
||||||
|
// to catch the ones arriving late.
|
||||||
|
while (pausesDuration.get() == 0) {
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
Thread.sleep(5000);
|
||||||
|
|
||||||
long pausesActual = pausesDuration.get();
|
long pausesActual = pausesDuration.get();
|
||||||
long cyclesActual = cyclesDuration.get();
|
long cyclesActual = cyclesDuration.get();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue