mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6763959: java.util.concurrent.locks.LockSupport.parkUntil(0) blocks forever
Absolute time 0 needs to return immediately. Reviewed-by: phh, dcubed, dholmes
This commit is contained in:
parent
08b41f30d8
commit
9e4a795ff5
3 changed files with 5 additions and 5 deletions
|
@ -3992,7 +3992,7 @@ void Parker::park(bool isAbsolute, jlong time) {
|
|||
if (time < 0) { // don't wait
|
||||
return;
|
||||
}
|
||||
else if (time == 0) {
|
||||
else if (time == 0 && !isAbsolute) {
|
||||
time = INFINITE;
|
||||
}
|
||||
else if (isAbsolute) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue