aboutsummaryrefslogtreecommitdiff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-20 10:10:29 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-20 10:10:29 +0000
commitdf5803bf468808a0fceda1987ae88edff67619a8 (patch)
tree547953e7f94fda7bb2360c5b348e010510681cee /nptl/allocatestack.c
parent01b2885290fdbb02bfe4f92f0873419abada5952 (diff)
downloadglibc-df5803bf468808a0fceda1987ae88edff67619a8.tar
glibc-df5803bf468808a0fceda1987ae88edff67619a8.tar.gz
glibc-df5803bf468808a0fceda1987ae88edff67619a8.tar.bz2
glibc-df5803bf468808a0fceda1987ae88edff67619a8.zip
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.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 57cb2717ec..94d05b2721 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -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"