Skip to content

Commit 5c55790

Browse files
committed
Clarify why we check __glibc__.
1 parent d7262cc commit 5c55790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
444444
uintptr_t here_addr = _Py_get_machine_stack_pointer();
445445
/// XXX musl supports HAVE_PTHRED_GETATTR_NP, but the resulting stack size
446446
/// (on alpine at least) is much smaller than expected and imposes undue limits
447-
/// compared to the old stack size estimation.
447+
/// compared to the old stack size estimation. (We assume musl if not glibc.)
448448
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && \
449449
!defined(__NetBSD__) && (defined(__GLIBC__) || !defined(__linux__))
450450
size_t stack_size, guard_size;

0 commit comments

Comments
 (0)