diff 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
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Tue Sep 21 06:58:44 2010 -0700
+++ b/src/os/linux/vm/os_linux.cpp	Mon Oct 04 13:11:10 2010 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -4839,7 +4839,7 @@
 
   // Next, demultiplex/decode time arguments
   timespec absTime;
-  if (time < 0) { // don't wait at all
+  if (time < 0 || (isAbsolute && time == 0) ) { // don't wait at all
     return;
   }
   if (time > 0) {