summaryrefslogtreecommitdiffstats
path: root/java/jdk13/files/patch-os_bsd.hpp
blob: c88a5608d4563642b818dd96934f2a065e153bae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$FreeBSD: ports/java/jdk13/files/patch-os_bsd.hpp,v 1.1 2004/11/28 05:29:25 glewis Exp $

--- ../../hotspot1.3.1/src/os/bsd/vm/os_bsd.hpp 16 Jan 2002 18:46:39 -0000  1.2
+++ ../../hotspot1.3.1/src/os/bsd/vm/os_bsd.hpp 22 Nov 2004 17:19:42 -0000
@@ -186,7 +186,7 @@
     bool trylock() {
       verify();
       int status = pthread_mutex_trylock(_mutex);
-      if (status == EBUSY)
+      if (status == EBUSY || status = EDEADLK)
    return false;
       assert(status == 0, "pthread_mutex_lock");
       #ifndef PRODUCT
@@ -349,7 +349,7 @@
     bool trylock() {
       verify();
       int status = pthread_mutex_trylock(_mutex);
-      if (status == EBUSY)
+      if (status == EBUSY || status = EDEADLK)
    return false;
       assert(status == 0, "pthread_mutex_trylock");
       #ifndef PRODUCT