GeezerVison is showing github.com — gh-126910: Verify that JIT stencils preserve frame pointer by Fidget-Spinner · Pull Request #146524 · python/cpython
Conversation
This PR introduces a lightweight assembly verifier that the JIT does not clobber the frame pointer.
I verified that without #146521 , this will fail JIT compilation on x86-64. Will use CI to test AArch64.
This is expected to fail JIT CI until that PR lands.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
SpookyYomo reacted with hooray emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Alright! Confirmed all platforms that currently support frame pointers (x64 and AArch64) fail, so this means it does work!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Just an FYI: discussed with Mark on 26 Mar UK time that we should just remove the clever tricks to get the frame address and use a simple approximate one.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Had to partially revert some of #146521 because the current recursion limit/stack overflow detection is working strangely after that with the JIT. Brandt's suggestion to just whack a Py_NO_INLINE on the function work. Good thing we have the verifier now so that we don't use one of the other recursion check functions and inadvertently introduce this again into the JIT.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ljfp
pushed a commit
to ljfp/cpython
that referenced
this pull request
Apr 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|