Kaydet (Commit) 68055ce6 authored tarafından Guido van Rossum's avatar Guido van Rossum

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().
üst 21ef0882
......@@ -73,6 +73,10 @@ PyTuple_New(size)
free_tuples[size] = (PyTupleObject *) op->ob_item[0];
#ifdef COUNT_ALLOCS
fast_tuple_allocs++;
#endif
#ifdef Py_TRACE_REFS
op->ob_type = &PyTuple_Type;
op->ob_size = size;
#endif
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment