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
{{ message }}
Repository navigation
Unsafe DECREFs of borrowed references in the interpreter. #125323
It is unsafe to borrow a PyObject * reference from a _PyStackRef and Py_DECREF the PyObject * reference and not close the _PyStackRef. This is quite a common pattern in bytecodes.c, and prevents any optimizations based on reference lifetimes as the inferred lifetime is incorrect.
The fix for this is to change the incorrect pattern:
Activity
Fidget-Spinner commentedon Oct 11, 2024
Main culprits are
Py_DECREF_SPECIALIZED. But removing that will get a slight perf hit. Should I do it?gh-125323: Remove some unsafe Py_DECREFs in bytecodes.c, replacing th…
GH-125323: Convert DECREF_INPUTS_AND_REUSE_FLOAT into a function that…