mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2003-02-20 Ulrich Drepper <drepper@redhat.com> * pthread_create.c (deallocate_tsd): Clear the entire first block of TSD. * Makefile (tests): Add tst-key4. * tst-key4.c: New file.
This commit is contained in:
@ -162,8 +162,8 @@ deallocate_tsd (struct pthread *pd)
|
||||
}
|
||||
else
|
||||
/* Clear the memory of the first block for reuse. */
|
||||
memset (pd->specific[0], '\0',
|
||||
sizeof (struct pthread_key_data));
|
||||
memset (&pd->specific_1stblock, '\0',
|
||||
sizeof (pd->specific_1stblock));
|
||||
}
|
||||
else
|
||||
idx += PTHREAD_KEY_1STLEVEL_SIZE;
|
||||
|
Reference in New Issue
Block a user