8065372: Object.wait(ms, ns) timeout returns early
authorrriggs
Wed, 19 Nov 2014 21:28:26 -0500
changeset 27733 e4e4d12307d7
parent 27732 31d7da6e79bf
child 27734 7d9f5cd9d441
8065372: Object.wait(ms, ns) timeout returns early Reviewed-by: martin, dholmes
jdk/src/java.base/share/classes/java/lang/Object.java
--- a/jdk/src/java.base/share/classes/java/lang/Object.java	Wed Nov 19 21:22:22 2014 -0500
+++ b/jdk/src/java.base/share/classes/java/lang/Object.java	Wed Nov 19 21:28:26 2014 -0500
@@ -453,7 +453,7 @@
                                 "nanosecond timeout value out of range");
         }
 
-        if (nanos >= 500000 || (nanos != 0 && timeout == 0)) {
+        if (nanos > 0) {
             timeout++;
         }