* pthread_create.c (deallocate_tsd): Reset found_nonzero at the
	beginning of the loop.  Clear the entire first block of TSD.
This commit is contained in:
Ulrich Drepper 2003-02-20 10:18:12 +00:00
parent 12fd3c5f66
commit c5acd3d77e
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
NPTL 0.23 by Ulrich Drepper
NPTL 0.24 by Ulrich Drepper

View File

@ -1,7 +1,7 @@
2003-02-20 Ulrich Drepper <drepper@redhat.com>
* 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.

View File

@ -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)
{