(__pthread_initialize_minimal_internal): Don't treat architectures with separate register stack special here when computing default stack size.
This commit is contained in:
parent
382168de70
commit
6c3eb26af3
|
@ -249,11 +249,7 @@ __pthread_initialize_minimal_internal (void)
|
||||||
default. */
|
default. */
|
||||||
limit.rlim_cur = ARCH_STACK_DEFAULT_SIZE;
|
limit.rlim_cur = ARCH_STACK_DEFAULT_SIZE;
|
||||||
|
|
||||||
#ifdef NEED_SEPARATE_REGISTER_STACK
|
|
||||||
__default_stacksize = MAX (limit.rlim_cur / 2, PTHREAD_STACK_MIN);
|
|
||||||
#else
|
|
||||||
__default_stacksize = MAX (limit.rlim_cur, PTHREAD_STACK_MIN);
|
__default_stacksize = MAX (limit.rlim_cur, PTHREAD_STACK_MIN);
|
||||||
#endif
|
|
||||||
/* The maximum page size better should be a multiple of the page
|
/* The maximum page size better should be a multiple of the page
|
||||||
size. */
|
size. */
|
||||||
assert (__default_stacksize % __sysconf (_SC_PAGESIZE) == 0);
|
assert (__default_stacksize % __sysconf (_SC_PAGESIZE) == 0);
|
||||||
|
|
Loading…
Reference in New Issue