comparison src/os/solaris/vm/os_solaris.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
1 /* 1 /*
2 * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 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.
5835 return; 5835 return;
5836 } 5836 }
5837 5837
5838 // First, demultiplex/decode time arguments 5838 // First, demultiplex/decode time arguments
5839 timespec absTime; 5839 timespec absTime;
5840 if (time < 0) { // don't wait at all 5840 if (time < 0 || (isAbsolute && time == 0) ) { // don't wait at all
5841 return; 5841 return;
5842 } 5842 }
5843 if (time > 0) { 5843 if (time > 0) {
5844 // Warning: this code might be exposed to the old Solaris time 5844 // Warning: this code might be exposed to the old Solaris time
5845 // round-down bugs. Grep "roundingFix" for details. 5845 // round-down bugs. Grep "roundingFix" for details.