From 580088c9004ad182f8862b72b2d3b63c79015250 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 16 Mar 2003 01:39:10 +0000 Subject: (allocate_stack): Store the exact stack size of user allocated stacks. --- nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl') 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. */ -- cgit v1.2.3