Mercurial > hg > truffle
comparison src/os/windows/vm/os_windows.cpp @ 1865:1c352af0135d
6763959: java.util.concurrent.locks.LockSupport.parkUntil(0) blocks forever
Summary: Absolute time 0 needs to return immediately.
Reviewed-by: phh, dcubed, dholmes
author | acorn |
---|---|
date | Mon, 04 Oct 2010 13:11:10 -0400 |
parents | 126ea7725993 |
children | b6aedd1acdc0 |
comparison
equal
deleted
inserted
replaced
1804:2966dab85b3e | 1865:1c352af0135d |
---|---|
3990 guarantee (_ParkEvent != NULL, "invariant") ; | 3990 guarantee (_ParkEvent != NULL, "invariant") ; |
3991 // First, demultiplex/decode time arguments | 3991 // First, demultiplex/decode time arguments |
3992 if (time < 0) { // don't wait | 3992 if (time < 0) { // don't wait |
3993 return; | 3993 return; |
3994 } | 3994 } |
3995 else if (time == 0) { | 3995 else if (time == 0 && !isAbsolute) { |
3996 time = INFINITE; | 3996 time = INFINITE; |
3997 } | 3997 } |
3998 else if (isAbsolute) { | 3998 else if (isAbsolute) { |
3999 time -= os::javaTimeMillis(); // convert to relative time | 3999 time -= os::javaTimeMillis(); // convert to relative time |
4000 if (time <= 0) // already elapsed | 4000 if (time <= 0) // already elapsed |