mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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 ........
This commit is contained in:
parent
3a652b1d0a
commit
acc5d6b195
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
@ -103,6 +100,9 @@ PyTuple_New(register Py_ssize_t size)
|
|||
++numfree[0];
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue