mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Move __default_stacksize into __default_pthread_attr
Make __default_pthread_attr object to store default attribute values for threads.
This commit is contained in:
@ -358,7 +358,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
||||
|
||||
/* Get the stack size from the attribute if it is set. Otherwise we
|
||||
use the default we determined at start time. */
|
||||
size = attr->stacksize ?: __default_stacksize;
|
||||
size = attr->stacksize ?: __default_pthread_attr.stacksize;
|
||||
|
||||
/* Get memory for the stack. */
|
||||
if (__builtin_expect (attr->flags & ATTR_FLAG_STACKADDR, 0))
|
||||
|
Reference in New Issue
Block a user