Skip to content

[mypyc] Fix ownership of borrowed generator op result spills - #21986

Merged
JukkaL merged 1 commit into
masterfrom
mypyc-fix-borrowed-spill
Sep 15, 2026
Merged

JukkaL merged 1 commit into
masterfrom
mypyc-fix-borrowed-spill

Conversation

@JukkaL

@JukkaL JukkaL commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Generator spill stores are inserted after reference count handling and steal their sources. A borrowed result therefore supplied no owned reference for the frame slot, allowing frame cleanup to decref objects such as static literals without a matching incref.

I used coding agent assist.

Generator spill stores are inserted after reference count handling and steal their sources. A borrowed result therefore supplied no owned reference for the frame slot, allowing frame cleanup to decref objects such as static literals without a matching incref.

I used coding agent assist.
@JukkaL
JukkaL merged commit f8df106 into master Sep 15, 2026
18 checks passed
@JukkaL
JukkaL deleted the mypyc-fix-borrowed-spill branch September 15, 2026 11:42
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.

2 participants