Skip to content

gh-161827: Mark _PyEval_EvalFrameDefault as Py_NO_INLINE - #161829

Merged
Fidget-Spinner merged 1 commit into
python:mainfrom
ikrommyd:gh-161827-noinline-evalframe
Nov 11, 2026
Merged

Fidget-Spinner merged 1 commit into
python:mainfrom
ikrommyd:gh-161827-noinline-evalframe

Conversation

@ikrommyd

@ikrommyd ikrommyd commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

As discussed in #161827, with the tail-calling interpreter _PyEval_EvalFrameDefault can get inlined into its callers (e.g. with Clang PGO) and no longer appear in the native call stack. This marks it Py_NO_INLINE so tools that rely on finding it keep working.

Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
@python-cla-bot

python-cla-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@Fidget-Spinner Fidget-Spinner added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 11, 2026
@Fidget-Spinner
Fidget-Spinner enabled auto-merge (squash) November 11, 2026 21:48
@Fidget-Spinner
Fidget-Spinner merged commit 043ddef into python:main Nov 11, 2026
69 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @ikrommyd for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app

bedevere-app Bot commented Nov 11, 2026

Copy link
Copy Markdown

GH-161833 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 11, 2026
@bedevere-app

bedevere-app Bot commented Nov 11, 2026

Copy link
Copy Markdown

GH-161834 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 11, 2026
@ikrommyd
ikrommyd deleted the gh-161827-noinline-evalframe branch November 11, 2026 22:10
orsenthil pushed a commit to orsenthil/cpython that referenced this pull request Nov 12, 2026
…ythonGH-161829)

pythongh-161827: Mark _PyEval_EvalFrameDefault as Py_NO_INLINE

Signed-off-by: Iason Krommydas <iason.krom@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants