summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-27 20:23:22 (GMT)
committerGitHub <noreply@github.com>2022-01-27 20:23:22 (GMT)
commit0575551f69ba9c999835bfb176a543d468083c03 (patch)
tree869e28a7628c05b3b00b711ec90495d885003062 /Python/pylifecycle.c
parent6c6a153dee132116611f2d5df0689a5a605f62b6 (diff)
downloadcpython-0575551f69ba9c999835bfb176a543d468083c03.zip
cpython-0575551f69ba9c999835bfb176a543d468083c03.tar.gz
cpython-0575551f69ba9c999835bfb176a543d468083c03.tar.bz2
bpo-40170: Move _Py_GetAllocatedBlocks() to pycore_pymem.h (GH-30943)
Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() declarations to pycore_pymem.h. These functions are related to memory allocators, not to the PyObject structure.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 106e11e..ba7bcd2 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -19,6 +19,7 @@
#include "pycore_pathconfig.h" // _PyConfig_WritePathConfig()
#include "pycore_pyerrors.h" // _PyErr_Occurred()
#include "pycore_pylifecycle.h" // _PyErr_Print()
+#include "pycore_pymem.h" // _PyObject_DebugMallocStats()
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_runtime_init.h" // _PyRuntimeState_INIT
#include "pycore_sliceobject.h" // _PySlice_Fini()