We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c260fc9 commit 700c2fdCopy full SHA for 700c2fd
Python/gc_free_threading.c
@@ -310,7 +310,7 @@ gc_visit_stackref(_PyStackRef stackref)
310
// being dead already.
311
if (PyStackRef_IsDeferred(stackref) && !PyStackRef_IsNull(stackref)) {
312
PyObject *curr_o = PyStackRef_AsPyObjectBorrow(stackref);
313
- if (!_Py_IsImmortal(curr_o)) {
+ if (_PyObject_GC_IS_TRACKED(curr_o)) {
314
gc_add_refs(curr_o, 1);
315
}
316
0 commit comments