blob: cab94f46e4d3e814371e8bbcc47da588d486bc4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$FreeBSD$
--- ../../hotspot/src/os/bsd/vm/os_bsd.hpp.orig Wed Oct 20 16:01:08 2004
+++ ../../hotspot/src/os/bsd/vm/os_bsd.hpp Wed Oct 20 16:01:30 2004
@@ -353,7 +353,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
|