1
0
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:
Siddhesh Poyarekar
2013-03-19 14:34:13 +05:30
parent d3cfc668a3
commit e903a7138b
7 changed files with 26 additions and 22 deletions

View File

@ -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))