Skip to content
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

gh-109094: replace frame->prev_instr by frame->instr_ptr #109095

Merged
merged 102 commits into from
Oct 26, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Sep 7, 2023

Python/optimizer.c Outdated Show resolved Hide resolved
Python/ceval.c Outdated Show resolved Hide resolved
@gvanrossum
Copy link
Member

For me, the only thing that prevent this from being merged is the failing gdb test. Maybe you can get help on Discord? Mark should still review it one more time.

@gvanrossum
Copy link
Member

(When you turn on uops all the time there are some additional failures in test_embed, but those are also on main; it's the thing Brandt reported. I'm looking into a shorter repro.)

@iritkatriel
Copy link
Member Author

For me, the only thing that prevent this from being merged is the failing gdb test. Maybe you can get help on Discord? Mark should still review it one more time.

I'll look into the gdb tests tomorrow.

@iritkatriel
Copy link
Member Author

iritkatriel commented Oct 26, 2023

I have made the requested changes; please review again.

Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments and questions, but looks good overall.

Objects/genobject.c Show resolved Hide resolved
Include/internal/pycore_frame.h Outdated Show resolved Hide resolved
Include/internal/pycore_frame.h Outdated Show resolved Hide resolved
Include/internal/pycore_frame.h Show resolved Hide resolved
Python/bytecodes.c Show resolved Hide resolved
Python/bytecodes.c Outdated Show resolved Hide resolved
Python/ceval_macros.h Outdated Show resolved Hide resolved
@markshannon
Copy link
Member

All test except test_embed pass with export PYTHONUOPS=1
The test_embed failure looks like the same as on main.

@iritkatriel
Copy link
Member Author

I have made the requested changes; please review again.

@markshannon markshannon self-requested a review October 26, 2023 13:10
Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. A definite improvement over the increasingly mis-named prev_instr

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.

3 participants