Skip to content

gh-107901: synthetic jumps which are not at end of loop no longer check the eval breaker#113721

Merged
iritkatriel merged 6 commits into
python:mainfrom
iritkatriel:gh-107901
Jan 6, 2024
Merged

gh-107901: synthetic jumps which are not at end of loop no longer check the eval breaker#113721
iritkatriel merged 6 commits into
python:mainfrom
iritkatriel:gh-107901

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Jan 5, 2024

Copy link
Copy Markdown
Member

This PR changes some of the synthetic non-loop JUMPs to be JUMP_NO_INTERRUPT.

The has two advantages:

  1. These jumps have no line number, so we don't want to perform an eval breaker check in them.
  2. It makes the code a bit smaller because there are no caches for these jumps.

@iritkatriel iritkatriel changed the title gh-107901: synthetic jumps which are not end of loop should not check the eval breaker gh-107901: synthetic jumps which are not at end of loop no longer check the eval breaker Jan 5, 2024
@iritkatriel
iritkatriel removed the request for review from brettcannon January 5, 2024 00:50

@markshannon markshannon 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.

I think we need to convert JUMP -> JUMP_NO_INTERRUPT to JUMP.
Otherwise, looks good.

Comment thread Python/flowgraph.c
@bedevere-app

bedevere-app Bot commented Jan 5, 2024

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@iritkatriel

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again.

Comment thread Python/flowgraph.c

@markshannon markshannon 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

@iritkatriel
iritkatriel merged commit d36a365 into python:main Jan 6, 2024
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
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