summaryrefslogtreecommitdiff
path: root/nptl/allocatestack.c
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 /nptl/allocatestack.c
parent638bb1f3941f1714659150a2202627d3820d6b05 (diff)
(allocate_stack): Store the exact stack size of user allocated stacks.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 45e4d87c49..f22f304347 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. */