Mercurial > hg > graal-jvmci-8
comparison src/os/linux/vm/os_linux.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 | c7004d700b49 |
children | b6aedd1acdc0 |
comparison
equal
deleted
inserted
replaced
1804:2966dab85b3e | 1865:1c352af0135d |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
4837 return; | 4837 return; |
4838 } | 4838 } |
4839 | 4839 |
4840 // Next, demultiplex/decode time arguments | 4840 // Next, demultiplex/decode time arguments |
4841 timespec absTime; | 4841 timespec absTime; |
4842 if (time < 0) { // don't wait at all | 4842 if (time < 0 || (isAbsolute && time == 0) ) { // don't wait at all |
4843 return; | 4843 return; |
4844 } | 4844 } |
4845 if (time > 0) { | 4845 if (time > 0) { |
4846 unpackTime(&absTime, isAbsolute, time); | 4846 unpackTime(&absTime, isAbsolute, time); |
4847 } | 4847 } |