Check __PTHREAD_MUTEX_HAVE_PREV for mutex prev
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 11 May 2012 17:08:57 +0000 (10:08 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 11 May 2012 17:08:57 +0000 (10:08 -0700)
nptl/ChangeLog
nptl/pthread_create.c

index 905a6beb643bd068f9a047cb4fcee3e55c02c035..00d5e39478553b815f2335f17cdd97a6c39d1ea1 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * pthread_create.c (start_thread): Check __PTHREAD_MUTEX_HAVE_PREV
+       instead of __WORDSIZE.
+
 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
 
        [BZ #3748]
index 09148852f913c8fbb16d288ffcc93aa287054fa9..3c1e4794c77af9f34a3b5852440e044adba4219b 100644 (file)
@@ -355,7 +355,7 @@ start_thread (void *arg)
 
 #ifndef __ASSUME_SET_ROBUST_LIST
   /* If this thread has any robust mutexes locked, handle them now.  */
-# if __WORDSIZE == 64
+# ifdef __PTHREAD_MUTEX_HAVE_PREV
   void *robust = pd->robust_head.list;
 # else
   __pthread_slist_t *robust = pd->robust_list.__next;