summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-03-23 19:17:00 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-03-23 19:17:00 (GMT)
commit1fba62427cdf51788125386aa3d603c6ae74e7e3 (patch)
tree193050447ac18d397571a89f076ab7f95a414427 /Objects/tupleobject.c
parentf8387af2620b2e02ceac856e08786429a913adb5 (diff)
downloadcpython-1fba62427cdf51788125386aa3d603c6ae74e7e3.zip
cpython-1fba62427cdf51788125386aa3d603c6ae74e7e3.tar.gz
cpython-1fba62427cdf51788125386aa3d603c6ae74e7e3.tar.bz2
The tracking statistics were actually too pessimistic
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 644d8a9..0a9c718 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;
}