Skip to content

GH-126910: Make _Py_get_machine_stack_pointer return the stack pointer#147945

Merged
markshannon merged 4 commits intopython:mainfrom
markshannon:fix-get-stack-pointer
Apr 1, 2026
Merged

GH-126910: Make _Py_get_machine_stack_pointer return the stack pointer#147945
markshannon merged 4 commits intopython:mainfrom
markshannon:fix-get-stack-pointer

Conversation

@markshannon
Copy link
Copy Markdown
Member

@markshannon markshannon commented Mar 31, 2026

(or close to it), but not the frame pointer.

  • Make _Py_ReachedRecursionLimit inline again
  • Remove _Py_MakeRecCheck replacing its use with _Py_ReachedRecursionLimit
  • Move the check for C stack swtiching into _Py_CheckRecursiveCall

… to it), not the frame pointer

* Make ``_Py_ReachedRecursionLimit`` inline again
* Remove ``_Py_MakeRecCheck`` relacing its use with ``_Py_ReachedRecursionLimit``
* Move stack swtiching check into ``_Py_CheckRecursiveCall``
@Fidget-Spinner
Copy link
Copy Markdown
Member

Can you bump a file to trigger JIT CI to run so we can see if this breaks anything? Mainly the verifier will catch if anything is wrong.

@markshannon markshannon changed the title Make _Py_get_machine_stack_pointer return the stack pointer GH-126910: Make _Py_get_machine_stack_pointer return the stack pointer Mar 31, 2026
@markshannon markshannon merged commit 255026d into python:main Apr 1, 2026
159 of 164 checks passed
Sign up for free to 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