Skip to content

gh-139653: If platform API doesn't give the current stack, use generic fallback - #139667

Closed
encukou wants to merge 2 commits into
python:mainfrom
encukou:stack-reset-guard-3
Closed

encukou wants to merge 2 commits into
python:mainfrom
encukou:stack-reset-guard-3

Conversation

@encukou

@encukou encukou commented Oct 6, 2025 •

Copy link
Copy Markdown
Member

Fall back to _Py_get_machine_stack_pointer if platform-specific API doesn't give us a stack that we're currently in. This might happen if some bespoke stack switching mechanism is in use.

With this, gh-139653 should be solved if the user calls _Py_InitializeRecursionLimits after each jump_fcontext.

@encukou

encukou commented Oct 20, 2025

Copy link
Copy Markdown
Member Author

Closing in favour of #139668

@encukou encukou closed this Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant