Skip to content

Commit dda81ed

Browse files
fangererqunaibit
authored andcommitted
Avoid upcall in _PyTuple_MaybeUntrack if tuple is managed
1 parent 2796f64 commit dda81ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/tupleobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ _PyTuple_MaybeUntrack(PyObject *op)
168168
PyTupleObject *t;
169169
Py_ssize_t i, n;
170170

171+
// GraalPy change
172+
if (points_to_py_handle_space(op))
173+
return;
174+
171175
if (!PyTuple_CheckExact(op) || !_PyObject_GC_IS_TRACKED(op))
172176
return;
173177
t = (PyTupleObject *) op;

0 commit comments

Comments
 (0)