diff options
| author | Victor Stinner <vstinner@python.org> | 2020-02-03 14:17:15 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-03 14:17:15 (GMT) |
| commit | c6e5c1123bac6cbb4c85265155af5349dcea522e (patch) | |
| tree | c9bc04bdd74fbf9d8f86dd1999d8acc0f4655fc3 /Include/cpython/object.h | |
| parent | 869c0c99b94ff9527acc1ca060164ab3d1bdcc53 (diff) | |
| download | cpython-c6e5c1123bac6cbb4c85265155af5349dcea522e.zip cpython-c6e5c1123bac6cbb4c85265155af5349dcea522e.tar.gz cpython-c6e5c1123bac6cbb4c85265155af5349dcea522e.tar.bz2 | |
bpo-39489: Remove COUNT_ALLOCS special build (GH-18259)
Remove:
* COUNT_ALLOCS macro
* sys.getcounts() function
* SHOW_ALLOC_COUNT code in listobject.c
* SHOW_TRACK_COUNT code in tupleobject.c
* PyConfig.show_alloc_count field
* -X showalloccount command line option
* @test.support.requires_type_collecting decorator
Diffstat (limited to 'Include/cpython/object.h')
| -rw-r--r-- | Include/cpython/object.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index dc8fd6f..5fcad55 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -255,15 +255,6 @@ typedef struct _typeobject { destructor tp_finalize; vectorcallfunc tp_vectorcall; - -#ifdef COUNT_ALLOCS - /* these must be last and never explicitly initialized */ - Py_ssize_t tp_allocs; - Py_ssize_t tp_frees; - Py_ssize_t tp_maxalloc; - struct _typeobject *tp_prev; - struct _typeobject *tp_next; -#endif } PyTypeObject; /* The *real* layout of a type object when allocated on the heap */ @@ -341,8 +332,6 @@ static inline void _Py_Dealloc_inline(PyObject *op) destructor dealloc = Py_TYPE(op)->tp_dealloc; #ifdef Py_TRACE_REFS _Py_ForgetReference(op); -#else - _Py_INC_TPFREES(op); #endif (*dealloc)(op); } |
