Skip to content

Commit 733a616

Browse files
fangererqunaibit
authored andcommitted
PyTruffle_Tuple_Dealloc should do nothing for managed tuples
1 parent 02dd473 commit 733a616

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,9 @@ PyObject* PyTruffle_Tuple_Alloc(PyTypeObject* type, Py_ssize_t nitems) {
13791379

13801380
void PyTruffle_Tuple_Dealloc(PyTupleObject* self) {
13811381
PyObject_GC_UnTrack(self);
1382+
if (points_to_py_handle_space(self)) {
1383+
return;
1384+
}
13821385
Py_TRASHCAN_BEGIN(self, PyTruffle_Tuple_Dealloc)
13831386
Py_ssize_t len = PyTuple_GET_SIZE(self);
13841387
if (len > 0) {

0 commit comments

Comments
 (0)