Skip to content

Fix successor opcode name printing #117471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

gvanrossum
Copy link
Member

I noticed that the successor opcode printed by DEOPT: messages made little sense. It turns out it was printing the last executed instruction instead of the next one to execute. This fixes the problem.

I reviewed the code that prints the similar message for SIDE EXIT: and it looks correct.

Looking at the code that prints the similar message for Error:, I'm okay with leaving it as-is -- it prints the name of the Tier 1 instruction that failed, and that seems fine.

@gvanrossum gvanrossum merged commit 8eda146 into python:main Apr 2, 2024
@gvanrossum gvanrossum deleted the fix-deopt-debug branch April 2, 2024 18:55
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
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.

2 participants