aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-16 01:39:10 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-16 01:39:10 +0000
commit580088c9004ad182f8862b72b2d3b63c79015250 (patch)
tree2f20a0c3c42c1a18efbac191ee98c493da4f8cfa
parent638bb1f3941f1714659150a2202627d3820d6b05 (diff)
downloadglibc-580088c9004ad182f8862b72b2d3b63c79015250.zip
glibc-580088c9004ad182f8862b72b2d3b63c79015250.tar.gz
glibc-580088c9004ad182f8862b72b2d3b63c79015250.tar.bz2
(allocate_stack): Store the exact stack size of user allocated stacks.
-rw-r--r--nptl/allocatestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 45e4d87..f22f304 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. */