From: Ulrich Drepper Date: Thu, 20 Feb 2003 00:00:32 +0000 (+0000) Subject: UPdate. X-Git-Tag: cvs/glibc-2_3_2~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed22820f2f786c9884bc047bffe58a3a6b4330f1;p=thirdparty%2Fglibc.git UPdate. 2003-02-19 Ulrich Drepper * specific.c (pthread_key_delete_helper): Don't use GETMEM, we need the target thread's lock. --- diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index cc2f38d81c5..f05881dd82c 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2003-02-19 Ulrich Drepper + + * specific.c (pthread_key_delete_helper): Don't use GETMEM, we + need the target thread's lock. + 2003-02-17 Ulrich Drepper * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX diff --git a/linuxthreads/specific.c b/linuxthreads/specific.c index 0956ed19836..aa8fcb5ab3d 100644 --- a/linuxthreads/specific.c +++ b/linuxthreads/specific.c @@ -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); } }