This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: POSIX update for glibc 2.1
- To: Java Patch List <java-patches@sourceware.cygnus.com>
- Subject: Patch: POSIX update for glibc 2.1
- From: Tom Tromey <tromey@cygnus.com>
- Date: 08 Sep 1999 01:01:20 -0600
- Reply-To: tromey@cygnus.com
I'm committing the appended patch. Thanks to Matt and Bryce for
finding the problem and testing it, respectively. This supposedly
fixes a recursive class initialization bug when running with glibc 2.1
(I have no way to compile it right now, unfortunately. Please ping me
if it fails).
1999-09-08 Tom Tromey <tromey@cygnus.com>
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
in __m_count case.
Tom
Index: include/posix-threads.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/posix-threads.h,v
retrieving revision 1.5
diff -u -r1.5 posix-threads.h
--- posix-threads.h 1999/09/08 00:43:06 1.5
+++ posix-threads.h 1999/09/08 06:58:31
@@ -114,7 +114,7 @@
// On Linux we exploit knowledge of the implementation.
int r = pmu->m_count == 1;
#elif defined (PTHREAD_MUTEX_HAVE___M_COUNT)
- int r = pmu->__m_count == 1;
+ int r = (pthread_t) pmu->__m_owner == pthread_self ();
#else
int r = mu->count == 0;
#endif