diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-16 01:39:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-16 01:39:10 +0000 |
commit | 580088c9004ad182f8862b72b2d3b63c79015250 (patch) | |
tree | 2f20a0c3c42c1a18efbac191ee98c493da4f8cfa /nptl/allocatestack.c | |
parent | 638bb1f3941f1714659150a2202627d3820d6b05 (diff) | |
download | glibc-580088c9004ad182f8862b72b2d3b63c79015250.tar.gz glibc-580088c9004ad182f8862b72b2d3b63c79015250.tar.xz glibc-580088c9004ad182f8862b72b2d3b63c79015250.zip |
(allocate_stack): Store the exact stack size of user allocated stacks.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 2 |
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. */ |