mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
(allocate_stack): Store the exact stack size of user allocated stacks.
This commit is contained in:
parent
638bb1f394
commit
580088c900
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user