1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +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

@ -145,7 +145,7 @@ get_cached_stack (size_t *sizep, void **memp)
/* Release the lock early. */
lll_unlock (stack_cache_lock);
/* Report size and location of the stack to the caller. */
*sizep = result->stackblock_size;
*memp = result->stackblock;
@ -462,7 +462,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
*pdp = pd;
#if TLS_TCB_AT_TP
/* The stack begin before the TCB and the static TLS block. */
/* The stack begins before the TCB and the static TLS block. */
*stack = ((char *) (pd + 1) - __static_tls_size);
#else
# error "Implement me"