◐ Shell
clean mode source ↗

[3.14] gh-139653: Add PyUnstable_ThreadState_SetStackProtection() (GH-139668) by encukou · Pull Request #141661 · python/cpython

and others added 5 commits

November 17, 2025 14:16
… limit on macOS (pythonGH-139232)

Use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size.
…honGH-139668)

Add PyUnstable_ThreadState_SetStackProtection() and
PyUnstable_ThreadState_ResetStackProtection() functions
to set the stack base address and stack size of a Python
thread state.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
…pythonGH-141551)

These checks were invalid and failed randomly on FreeBSD
and Alpine Linux.

@encukou encukou changed the title gh-139653: Add PyUnstable_ThreadState_SetStackProtection() (GH-139668) [3.14] gh-139653: Add PyUnstable_ThreadState_SetStackProtection() (GH-139668)

Nov 17, 2025

vstinner

vstinner

@encukou encukou deleted the backport-b99db92-3.14 branch

November 25, 2025 13:21