aboutsummaryrefslogtreecommitdiff
path: root/nptl/nptl-init.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/nptl-init.c
parentd3cfc668a3988168ccd9342e46cd884da511367b (diff)
downloadglibc-e903a7138b4a39904b9d17a1d7715ae7c17fd832.zip
glibc-e903a7138b4a39904b9d17a1d7715ae7c17fd832.tar.gz
glibc-e903a7138b4a39904b9d17a1d7715ae7c17fd832.tar.bz2
Move __default_stacksize into __default_pthread_attr
Make __default_pthread_attr object to store default attribute values for threads.
Diffstat (limited to 'nptl/nptl-init.c')
-rw-r--r--nptl/nptl-init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 19e6616..63fb729 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -423,7 +423,8 @@ __pthread_initialize_minimal_internal (void)
/* Round the resource limit up to page size. */
limit.rlim_cur = (limit.rlim_cur + pagesz - 1) & -pagesz;
- __default_stacksize = limit.rlim_cur;
+ __default_pthread_attr.stacksize = limit.rlim_cur;
+ __default_pthread_attr.guardsize = GLRO (dl_pagesize);
#ifdef SHARED
/* Transfer the old value from the dynamic linker's internal location. */