◐ Shell
clean mode source ↗

[3.14] gh-139231: Fix estimation of available stack size for recursion limit on macOS (GH-139232) by miss-islington · Pull Request #139290 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@miss-islington

@miss-islington miss-islington commented

Sep 24, 2025

edited by bedevere-app Bot

Loading

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington @markshannon @rokm