RFR (XXS): 8066896: Update c.o.j.t.InfiniteLoop to skip zero timeout

Pavel Chistyakov pavel.chistyakov at oracle.com
Tue Dec 9 16:50:16 UTC 2014


Hi all,

please review changes for: https://bugs.openjdk.java.net/browse/JDK-8066896
webrev: 
http://cr.openjdk.java.net/~iignatyev/pchistyakov/8066896/webrev.00/ 
<http://cr.openjdk.java.net/%7Eiignatyev/pchistyakov/8066896/webrev.00/>

Problem:
InfiniteLoop allows zero value as timeout and waste time for 
Thread.sleep(0) call that is not needed in this case.

Solution:
Add a condition for skipping 0 (zero) timeout when calling Thread.sleep

Testing: manual

-------------------
Thanks,
Pavel


More information about the hotspot-compiler-dev mailing list