Skip to content

[mypyc] feat: make static literals immortal on Python3.14#20117

Open
BobTheBuidler wants to merge 10 commits intopython:masterfrom
BobTheBuidler:patch-25
Open

[mypyc] feat: make static literals immortal on Python3.14#20117
BobTheBuidler wants to merge 10 commits intopython:masterfrom
BobTheBuidler:patch-25

Conversation

@BobTheBuidler
Copy link
Copy Markdown
Contributor

This PR makes all static values defined in CPyStatic immortal, since we know they will never be deallocated

@BobTheBuidler BobTheBuidler marked this pull request as ready for review October 25, 2025 09:36
@BobTheBuidler
Copy link
Copy Markdown
Contributor Author

Where is the actual C code for the LoadLiteral generated? Can we remove an IncRef op?

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