Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-109094: remove unnecessary updates of frame->prev_instr in instrumentation functions#109076

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
iritkatriel merged 4 commits intopython:mainfromiritkatriel:instrumentation
Sep 7, 2023

Conversation

@iritkatriel
Copy link
Member

@iritkatrieliritkatriel commentedSep 7, 2023
edited by bedevere-bot
Loading

There are updates toframe->prev_instr which are either redundant (in _Py_call_instrumentation_line) or don't seem to serve any purpose (_Py_call_instrumentation_jump). Removing them does not impact anything we can see through our tests.

This PR removes them and adds assertions that the line implied byf_lasti is the same asf_lineno in line and jump event callbacks.

@iritkatrieliritkatriel changed the titleassert lineno and lasti agree. Remove prev_instr setting in _Py_call_…gh-109094: remove unnecessary updates of frame->prev_instr in instrumentation functionsSep 7, 2023
@iritkatrieliritkatriel marked this pull request as ready for reviewSeptember 7, 2023 16:16
@iritkatrieliritkatriel added skip news interpreter-core(Objects, Python, Grammar, and Parser dirs) and removed awaiting core review labelsSep 7, 2023
Copy link
Member

@markshannonmarkshannon left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@markshannonmarkshannonmarkshannon approved these changes

Assignees

No one assigned

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@iritkatriel@markshannon@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp