8202094: jdk/jfr/api/recording/event/TestEventTime.java intermittently times out
Reviewed-by: mgronlun
This commit is contained in:
parent
482e40cc8c
commit
4ed3a3f4fa
@ -106,7 +106,7 @@ public final class CommonHelper {
|
|||||||
|
|
||||||
public static void waitForSystemCurrentMillisToChange() {
|
public static void waitForSystemCurrentMillisToChange() {
|
||||||
long t = System.currentTimeMillis();
|
long t = System.currentTimeMillis();
|
||||||
while (t != System.currentTimeMillis()) {
|
while (t == System.currentTimeMillis()) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(2);
|
Thread.sleep(2);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user