From 49186d21ef2d87986bccaf0a7c45c48c91b265f3 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 27 Jun 2013 11:15:06 -0700 Subject: Disable elision for any pthread_mutexattr_settype call PTHREAD_MUTEX_NORMAL requires deadlock for nesting, DEFAULT does not. Since glibc uses the same value (0) disable elision for any call to pthread_mutexattr_settype() with a 0 value. This implies that a program can disable elision by doing pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL) Based on a original proposal by Rich Felker. --- nptl/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nptl/ChangeLog') diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 7f82b2098a..d32046ee65 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2013-07-02 Andi Kleen + + * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): + Disable elision for PTHREAD_MUTEX_DEFAULT. + 2013-07-02 Andi Kleen Hongjiu Lu -- cgit v1.2.3