]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
UPdate.
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Feb 2003 00:00:32 +0000 (00:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Feb 2003 00:00:32 +0000 (00:00 +0000)
2003-02-19  Ulrich Drepper  <drepper@redhat.com>

* specific.c (pthread_key_delete_helper): Don't use GETMEM, we
need the target thread's lock.

linuxthreads/ChangeLog
linuxthreads/specific.c

index cc2f38d81c5f9e167caa6b8fadd29651e05bf3e7..f05881dd82c5dab7d3020cd8cb457720fb478cfa 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-19  Ulrich Drepper  <drepper@redhat.com>
+
+       * specific.c (pthread_key_delete_helper): Don't use GETMEM, we
+       need the target thread's lock.
+
 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
index 0956ed198363f51752518cd68f14bb8f98197671..aa8fcb5ab3d7e51be96883f37511b62604a471fa 100644 (file)
@@ -80,10 +80,10 @@ static void pthread_key_delete_helper(void *arg, pthread_descr th)
 
   if (!th->p_terminated) {
     /* pthread_exit() may try to free th->p_specific[idx1st] concurrently. */
-    __pthread_lock(THREAD_GETMEM(th, p_lock), self);
+    __pthread_lock(th->p_lock, self);
     if (th->p_specific[idx1st] != NULL)
       th->p_specific[idx1st][idx2nd] = NULL;
-    __pthread_unlock(THREAD_GETMEM(th, p_lock));
+    __pthread_unlock(th->p_lock);
   }
 }