Skip to content

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

Merged
iritkatriel merged 102 commits into
python:mainfrom
iritkatriel:instr_ptr
Oct 26, 2023
Merged

gh-109094: replace frame->prev_instr by frame->instr_ptr#109095
iritkatriel merged 102 commits into
python:mainfrom
iritkatriel:instr_ptr

Conversation

@iritkatriel

@iritkatrieliritkatriel commented Sep 7, 2023

Copy link
Copy Markdown
Member

Comment threadPython/optimizer.c Outdated
Comment threadPython/ceval.c Outdated
@gvanrossum

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
MemberAuthor

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

iritkatriel commented Oct 26, 2023

Copy link
Copy Markdown
MemberAuthor

I have made the requested changes; please review again.

@markshannonmarkshannon left a comment

Copy link
Copy Markdown
Member

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.

Comment threadObjects/genobject.c
Comment threadInclude/internal/pycore_frame.h Outdated
Comment threadInclude/internal/pycore_frame.h Outdated
Comment threadInclude/internal/pycore_frame.h
Comment threadPython/bytecodes.c
Comment threadPython/bytecodes.c Outdated
Comment threadPython/ceval_macros.h Outdated
@markshannon

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

I have made the requested changes; please review again.

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

@markshannonmarkshannon left a comment

Copy link
Copy Markdown
Member

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 freeto 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

@iritkatriel@gvanrossum@markshannon