summaryrefslogtreecommitdiff
path: root/nptl/vars.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-19 14:34:13 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-19 14:34:13 +0530
commite903a7138b4a39904b9d17a1d7715ae7c17fd832 (patch)
tree3496f780b2da815263d381f31870564df323ac3e /nptl/vars.c
parentd3cfc668a3988168ccd9342e46cd884da511367b (diff)
Move __default_stacksize into __default_pthread_attr
Make __default_pthread_attr object to store default attribute values for threads.
Diffstat (limited to 'nptl/vars.c')
-rw-r--r--nptl/vars.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/nptl/vars.c b/nptl/vars.c
index 2bcd1f8e0a..45ca486143 100644
--- a/nptl/vars.c
+++ b/nptl/vars.c
@@ -20,13 +20,9 @@
#include <tls.h>
#include <unistd.h>
-/* Default stack size. */
-size_t __default_stacksize attribute_hidden
-#ifdef SHARED
-;
-#else
- = PTHREAD_STACK_MIN;
-#endif
+/* Default thread attributes for the case when the user does not
+ provide any. */
+struct pthread_attr __default_pthread_attr attribute_hidden;
/* Flag whether the machine is SMP or not. */
int __is_smp attribute_hidden;