src/os/solaris/vm/os_solaris.cpp

changeset 2220
1c352af0135d
parent 2036
126ea7725993
child 2222
b6aedd1acdc0
     1.1 --- a/src/os/solaris/vm/os_solaris.cpp	Tue Sep 21 06:58:44 2010 -0700
     1.2 +++ b/src/os/solaris/vm/os_solaris.cpp	Mon Oct 04 13:11:10 2010 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -5837,7 +5837,7 @@
    1.11  
    1.12    // First, demultiplex/decode time arguments
    1.13    timespec absTime;
    1.14 -  if (time < 0) { // don't wait at all
    1.15 +  if (time < 0 || (isAbsolute && time == 0) ) { // don't wait at all
    1.16      return;
    1.17    }
    1.18    if (time > 0) {

mercurial