diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-23 19:19:54 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-23 19:19:54 +0000 |
commit | acc5d6b195c9f9819cc7ccab71547fde3f21ab3f (patch) | |
tree | d5bd2988930e87798aae30245e754486e1821312 /Objects/tupleobject.c | |
parent | 3a652b1d0af20c7d2a9fc9251f71b2a34c49b302 (diff) | |
download | cpython-git-acc5d6b195c9f9819cc7ccab71547fde3f21ab3f.tar.gz |
Merged revisions 70550 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70550 | antoine.pitrou | 2009-03-23 20:17:00 +0100 (lun., 23 mars 2009) | 3 lines
The tracking statistics were actually too pessimistic
........
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 11be0e19dc..290107ad34 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -50,9 +50,6 @@ PyTuple_New(register Py_ssize_t size) { register PyTupleObject *op; Py_ssize_t i; -#ifdef SHOW_TRACK_COUNT - count_tracked++; -#endif if (size < 0) { PyErr_BadInternalCall(); return NULL; @@ -104,6 +101,9 @@ PyTuple_New(register Py_ssize_t size) Py_INCREF(op); /* extra INCREF so that this is never freed */ } #endif +#ifdef SHOW_TRACK_COUNT + count_tracked++; +#endif _PyObject_GC_TRACK(op); return (PyObject *) op; } |