diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-03-19 14:34:13 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-03-19 14:34:13 +0530 |
commit | e903a7138b4a39904b9d17a1d7715ae7c17fd832 (patch) | |
tree | 3496f780b2da815263d381f31870564df323ac3e /nptl/pthread_create.c | |
parent | d3cfc668a3988168ccd9342e46cd884da511367b (diff) | |
download | glibc-e903a7138b4a39904b9d17a1d7715ae7c17fd832.tar.gz glibc-e903a7138b4a39904b9d17a1d7715ae7c17fd832.tar.xz glibc-e903a7138b4a39904b9d17a1d7715ae7c17fd832.zip |
Move __default_stacksize into __default_pthread_attr
Make __default_pthread_attr object to store default attribute values for threads.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r-- | nptl/pthread_create.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index c6f2fdd724..c18278cf08 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -435,15 +435,6 @@ start_thread (void *arg) } -/* Default thread attributes for the case when the user does not - provide any. */ -static const struct pthread_attr default_attr = - { - /* Just some value > 0 which gets rounded to the nearest page size. */ - .guardsize = 1, - }; - - int __pthread_create_2_1 (newthread, attr, start_routine, arg) pthread_t *newthread; @@ -457,7 +448,7 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg) if (iattr == NULL) /* Is this the best idea? On NUMA machines this could mean accessing far-away memory. */ - iattr = &default_attr; + iattr = &__default_pthread_attr; struct pthread *pd = NULL; int err = ALLOCATE_STACK (iattr, &pd); |