mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(allocate_stack): Store the exact stack size of user allocated stacks.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user