1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
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:
Ulrich Drepper
2003-02-20 10:10:29 +00:00
parent 01b2885290
commit df5803bf46
5 changed files with 129 additions and 5 deletions

View File

@ -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;