diff options
author | Guido van Rossum <guido@python.org> | 1998-12-11 14:56:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-11 14:56:38 (GMT) |
commit | 68055ce6fe015ff07352401045e01e6e2d861f11 (patch) | |
tree | 77c5d808ba3ae59b3db4fb26beaa74734ea8cd69 /Objects | |
parent | 21ef088265e20cdc2c7cff50eab432f8c620da01 (diff) | |
download | cpython-68055ce6fe015ff07352401045e01e6e2d861f11.zip cpython-68055ce6fe015ff07352401045e01e6e2d861f11.tar.gz cpython-68055ce6fe015ff07352401045e01e6e2d861f11.tar.bz2 |
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().
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/tupleobject.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ PyTuple_New(size) #ifdef COUNT_ALLOCS fast_tuple_allocs++; #endif +#ifdef Py_TRACE_REFS + op->ob_type = &PyTuple_Type; + op->ob_size = size; +#endif } else #endif |