We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8f676 commit d7262ccCopy full SHA for d7262cc
1 file changed
Python/ceval.c
@@ -442,8 +442,11 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
442
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
443
#else
444
uintptr_t here_addr = _Py_get_machine_stack_pointer();
445
+/// XXX musl supports HAVE_PTHRED_GETATTR_NP, but the resulting stack size
446
+/// (on alpine at least) is much smaller than expected and imposes undue limits
447
+/// compared to the old stack size estimation.
448
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && \
- !defined(__NetBSD__) && defined(__GLIBC__)
449
+ !defined(__NetBSD__) && (defined(__GLIBC__) || !defined(__linux__))
450
size_t stack_size, guard_size;
451
void *stack_addr;
452
pthread_attr_t attr;
0 commit comments