1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +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

@@ -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. */