Skip to content

[3.14] gh-139231: Fix estimation of available stack size for recursion limit on macOS (GH-139232) - #139290

Closed
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-7016044-3.14
Closed

[3.14] gh-139231: Fix estimation of available stack size for recursion limit on macOS (GH-139232)#139290
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-7016044-3.14

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

Use pthread_get_stackaddr_np() and pthread_get_stacksize_np() to determine the stack address and size.
(cherry picked from commit 7016044)

Co-authored-by: Rok Mandeljc rok.mandeljc@gmail.com

… limit on macOS (pythonGH-139232)
Use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size.
(cherry picked from commit 7016044)
Co-authored-by: Rok Mandeljc <rok.mandeljc@gmail.com>
@markshannon

Copy link
Copy Markdown
Member

This is incorrect, as it doesn't add sufficient margin for the hard limit.

@miss-islington
miss-islington deleted the backport-7016044-3.14 branch January 2, 2026 18:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@markshannon@rokm