# HG changeset patch # User iignatyev # Date 1419341804 -10800 # Node ID 06892f6d6d7212f36d08ea4e62e210ef151be85f # Parent bec02e2cbde7fa6f088ead551e537f67b2fb50b2 8066896: Update c.o.j.t.InfiniteLoop to skip zero timeout Reviewed-by: kvn, iignatyev Contributed-by: pavel.chistyakov@oracle.com diff -r bec02e2cbde7 -r 06892f6d6d72 hotspot/test/testlibrary/com/oracle/java/testlibrary/InfiniteLoop.java --- a/hotspot/test/testlibrary/com/oracle/java/testlibrary/InfiniteLoop.java Fri Dec 19 14:12:22 2014 +0300 +++ b/hotspot/test/testlibrary/com/oracle/java/testlibrary/InfiniteLoop.java Tue Dec 23 16:36:44 2014 +0300 @@ -54,7 +54,9 @@ try { while (true) { target.run(); - Thread.sleep(mills); + if (mills > 0) { + Thread.sleep(mills); + } } } catch (InterruptedException e) { Thread.currentThread().interrupt();