From e903a7138b4a39904b9d17a1d7715ae7c17fd832 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 19 Mar 2013 14:34:13 +0530 Subject: Move __default_stacksize into __default_pthread_attr Make __default_pthread_attr object to store default attribute values for threads. --- nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/allocatestack.c') diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 31c88291ae..56bf2570f8 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -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)) -- cgit 1.4.1