5433f3b488f35787d25560d58a033046025f576e
[openwrt.git] / toolchain / uClibc / patches-0.9.32 / 190-nptl_use_arch_default_stack_limit.patch
1 --- a/libpthread/nptl/init.c
2 +++ b/libpthread/nptl/init.c
3 @@ -401,6 +401,10 @@ __pthread_initialize_minimal_internal (v
4 Use the minimal size acceptable. */
5 limit.rlim_cur = PTHREAD_STACK_MIN;
6
7 + /* Do not exceed architecture specific default */
8 + if (limit.rlim_cur > ARCH_STACK_DEFAULT_SIZE)
9 + limit.rlim_cur = ARCH_STACK_DEFAULT_SIZE;
10 +
11 /* Make sure it meets the minimum size that allocate_stack
12 (allocatestack.c) will demand, which depends on the page size. */
13 const uintptr_t pagesz = sysconf (_SC_PAGESIZE);
This page took 0.049129 seconds and 3 git commands to generate.