Skip to content

gh-100762: Fix optimization in gen_close #111069

Merged
iritkatriel merged 6 commits intopython:mainfrom
iritkatriel:refleak
Oct 25, 2023
Merged

gh-100762: Fix optimization in gen_close #111069
iritkatriel merged 6 commits intopython:mainfrom
iritkatriel:refleak

Conversation

@iritkatriel
Copy link
Copy Markdown
Member

@iritkatriel iritkatriel commented Oct 19, 2023

In f02fa64 lines 383-389 were added, with returns that do not decref yf. I think this is ok because yf is always NULL in these cases. Adding the assertions.

Also, the optimization for the case of exception_handler_depth== 1 is not working because op.code is checked instead of op.arg.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants