mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* 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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user