diff --git a/test/lib/jdk/test/lib/jfr/CommonHelper.java b/test/lib/jdk/test/lib/jfr/CommonHelper.java index 61d7152ed4e..10ae4dffaf8 100644 --- a/test/lib/jdk/test/lib/jfr/CommonHelper.java +++ b/test/lib/jdk/test/lib/jfr/CommonHelper.java @@ -106,7 +106,7 @@ public final class CommonHelper { public static void waitForSystemCurrentMillisToChange() { long t = System.currentTimeMillis(); - while (t != System.currentTimeMillis()) { + while (t == System.currentTimeMillis()) { try { Thread.sleep(2); } catch (InterruptedException e) {