8065372: Object.wait(ms, ns) timeout returns early

Reviewed-by: martin, dholmes
This commit is contained in:
Roger Riggs 2014-11-19 21:28:26 -05:00
parent 53906a2cb4
commit d5aaa2d8ff

View File

@ -453,7 +453,7 @@ public class Object {
"nanosecond timeout value out of range");
}
if (nanos >= 500000 || (nanos != 0 && timeout == 0)) {
if (nanos > 0) {
timeout++;
}