This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: POSIX update for glibc 2.1


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]