This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix the unwind lock


object_lock is a recursive lock. Here is a patch.


H.J.
---
2002-01-20  H.J. Lu  <hjl@gnu.org>

	* sysdeps/generic/unwind-dw2-fde.c (object_mutex_lock): Use the
	recursive version.
	(object_mutex_unlock): Likewise.

--- libc/sysdeps/generic/unwind-dw2-fde.c.lock	Sun Nov  4 22:48:33 2001
+++ libc/sysdeps/generic/unwind-dw2-fde.c	Sun Jan 20 22:28:21 2002
@@ -58,8 +58,8 @@ static struct object *seen_objects;
 #ifdef _LIBC
 __libc_lock_define_initialized_recursive (static, object_lock)
 #define init_object_mutex_once()
-#define object_mutex_lock()	__libc_lock_lock (object_lock)
-#define object_mutex_unlock()	__libc_lock_unlock (object_lock)
+#define object_mutex_lock()	__libc_lock_lock_recursive (object_lock)
+#define object_mutex_unlock()	__libc_lock_unlock_recursive (object_lock)
 #else
 #define object_mutex_lock()	__gthread_mutex_lock (&object_mutex)
 #define object_mutex_unlock()	__gthread_mutex_unlock (&object_mutex)


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