From: Ulrich Drepper Date: Thu, 20 Feb 2003 10:18:12 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_2~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5acd3d77e9fc3abef96a5ca6b745eb53789bbde;p=thirdparty%2Fglibc.git Update. * pthread_create.c (deallocate_tsd): Reset found_nonzero at the beginning of the loop. Clear the entire first block of TSD. --- diff --git a/nptl/Banner b/nptl/Banner index ae12e7c142c..29d93d64df3 100644 --- a/nptl/Banner +++ b/nptl/Banner @@ -1 +1 @@ -NPTL 0.23 by Ulrich Drepper +NPTL 0.24 by Ulrich Drepper diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 5cbc7663989..f650542dbf1 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,7 +1,7 @@ 2003-02-20 Ulrich Drepper - * pthread_create.c (deallocate_tsd): Clear the entire first block - of TSD. + * pthread_create.c (deallocate_tsd): Reset found_nonzero at the + beginning of the loop. Clear the entire first block of TSD. * Makefile (tests): Add tst-key4. * tst-key4.c: New file. diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 89152ffeb93..bac7455af8e 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -124,6 +124,9 @@ deallocate_tsd (struct pthread *pd) size_t cnt; size_t idx; + /* So far no new nonzero data entry. */ + found_nonzero = false; + for (cnt = idx = 0; cnt < PTHREAD_KEY_1STLEVEL_SIZE; ++cnt) if (pd->specific[cnt] != NULL) {