Skip to content

Commit c3f7493

Browse files
fangererqunaibit
authored andcommitted
Don't do upcall in _PyDict_MaybeUntrack
1 parent ac4f721 commit c3f7493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ _PyDict_HasOnlyStringKeys(PyObject *dict)
11271127
void
11281128
_PyDict_MaybeUntrack(PyObject *op)
11291129
{
1130+
#if 0 // GraalPy change
11301131
PyDictObject *mp;
11311132
PyObject *value;
11321133
Py_ssize_t i, numentries;
@@ -1138,7 +1139,6 @@ _PyDict_MaybeUntrack(PyObject *op)
11381139
if (!GraalPyTruffleDict_MaybeUntrack(op))
11391140
return;
11401141

1141-
#if 0 // GraalPy change
11421142
mp = (PyDictObject *) op;
11431143
numentries = mp->ma_keys->dk_nentries;
11441144
if (_PyDict_HasSplitTable(mp)) {
@@ -1171,8 +1171,8 @@ _PyDict_MaybeUntrack(PyObject *op)
11711171
}
11721172
}
11731173
}
1174-
#endif // GraalPy change
11751174
_PyObject_GC_UNTRACK(op);
1175+
#endif // GraalPy change
11761176
}
11771177

11781178
#if 0 // GraalPy change

0 commit comments

Comments
 (0)