You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-130851: Only intern constants of types generated by compiler
The free threading build interns and immortalizes most constants
generated by the bytecode compiler. However, users can construct their
own code objects with arbitrary constants. Don't intern or immortalize
these objects if they are not a type that we know how to handle.
This fixes a refleak failure in the recently added
`test_code.test_unusual_constants` test.
It also fixes a potential crash that could happen when we try to
destory a immortalized object on interpreter shutdown.
0 commit comments