From: Ulrich Drepper Date: Sun, 16 Mar 2003 01:39:10 +0000 (+0000) Subject: (allocate_stack): Store the exact stack size of user allocated stacks. X-Git-Tag: cvs/glibc-2_3_3~1209 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=580088c9004ad182f8862b72b2d3b63c79015250;p=thirdparty%2Fglibc.git (allocate_stack): Store the exact stack size of user allocated stacks. --- diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 45e4d87c49d..f22f304347f 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -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. */