]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(allocate_stack): Store the exact stack size of user allocated stacks.
authorUlrich Drepper <drepper@redhat.com>
Sun, 16 Mar 2003 01:39:10 +0000 (01:39 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 16 Mar 2003 01:39:10 +0000 (01:39 +0000)
nptl/allocatestack.c

index 45e4d87c49d0a515b2287280cd49be112a15b844..f22f304347f969700b82a67beaa2638806bac9fc 100644 (file)
@@ -313,7 +313,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
 
       /* Remember the stack-related values.  */
       pd->stackblock = (char *) attr->stackaddr - size;
-      pd->stackblock_size = size - adj;
+      pd->stackblock_size = size;
 
       /* This is a user-provided stack.  It will not be queued in the
         stack cache nor will the memory (except the TLS memory) be freed.  */