Skip to content
Prev Previous commit
Next Next commit
X{INC,DEC}REF don't escape
  • Loading branch information
gvanrossum committed Mar 2, 2024
commit 7579cf3d5122e0197b456611027a17376024663f
2 changes: 1 addition & 1 deletion Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Include/internal/pycore_uop_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Tools/cases_generator/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,13 @@ def is_infallible(op: parser.InstDef) -> bool:

NON_ESCAPING_FUNCTIONS = (
"Py_INCREF",
"Py_XINCREF",
"_PyDictOrValues_IsValues",
"_PyObject_DictOrValuesPointer",
"_PyDictOrValues_GetValues",
"_PyObject_MakeInstanceAttributesFromDict",
"Py_DECREF",
"Py_XDECREF",
"_Py_DECREF_SPECIALIZED",
"DECREF_INPUTS_AND_REUSE_FLOAT",
"PyUnicode_Append",
Expand Down