commit | 68055ce6fe015ff07352401045e01e6e2d861f11 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Dec 11 14:56:38 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Dec 11 14:56:38 1998 +0000 |
tree | 77c5d808ba3ae59b3db4fb26beaa74734ea8cd69 | |
parent | 21ef088265e20cdc2c7cff50eab432f8c620da01 [diff] [blame] |
When tracing references, reset the type and size of tuples allocated from the fast free list -- the type (at least) is reset by _Py_Dealloc().
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 2286b01..4b7714c 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c
@@ -74,6 +74,10 @@ #ifdef COUNT_ALLOCS fast_tuple_allocs++; #endif +#ifdef Py_TRACE_REFS + op->ob_type = &PyTuple_Type; + op->ob_size = size; +#endif } else #endif