arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh841653-8.patch

147e83
commit 673659263d956f45f1ce0c66900fa7f1129db74a
147e83
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
147e83
Date:   Mon May 26 11:14:25 2014 +0200
147e83
147e83
    Disable lock elision for PTHREAD_MUTEX_NORMAL.
147e83
Index: glibc-2.17-c758a686/nptl/pthread_mutexattr_settype.c
147e83
===================================================================
147e83
--- glibc-2.17-c758a686.orig/nptl/pthread_mutexattr_settype.c
147e83
+++ glibc-2.17-c758a686/nptl/pthread_mutexattr_settype.c
147e83
@@ -32,7 +32,7 @@ __pthread_mutexattr_settype (attr, kind)
147e83
 
147e83
   /* Cannot distinguish between DEFAULT and NORMAL. So any settype
147e83
      call disables elision for now.  */
147e83
-  if (kind == PTHREAD_MUTEX_DEFAULT)
147e83
+  if (kind == PTHREAD_MUTEX_NORMAL)
147e83
     kind |= PTHREAD_MUTEX_NO_ELISION_NP;
147e83
 
147e83
   iattr = (struct pthread_mutexattr *) attr;