8066896: Update c.o.j.t.InfiniteLoop to skip zero timeout
Reviewed-by: kvn, iignatyev
Contributed-by: pavel.chistyakov@oracle.com
--- 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();