]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113655: Lower the C recursion limit for HPPA, PPC64 and SPARC (#124264)
authorSam James <sam@gentoo.org>
Mon, 23 Sep 2024 07:03:30 +0000 (08:03 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 07:03:30 +0000 (09:03 +0200)
commit0e89f7abd494bd6c658083c1c1d50a640a1f2309
treef3ff4a69ede55f1ef97c81d78b66b8c46a341c11
parentd3e79d75d164c338a64fd66edb26e69c501cee58
GH-113655: Lower the C recursion limit for HPPA, PPC64 and SPARC (#124264)

Lower the C recursion limit for HPPA, PPC64 and SPARC, as they use
relatively large stack frames that cause e.g. `test_descr` to hit
a stack overflow.  According to quick testing, it seems that values
around 8000 are max for HPPA and PPC64 (ELFv1 ABI) and 7000 for SPARC64.
To keep things safe, let's use 5000 for PPC64 and 4000 for SPARC.

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Include/cpython/pystate.h