[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable
STINNER Victor
report at bugs.python.org
Tue May 26 11:01:57 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
"Recent" changes in builtin Python debug tools.
* In Python 3.9, I removed the "COUNT_ALLOCS" special build: bpo-39489.
* Debug build of Python 3.8 is now ABI compatible with release build: I disabled Py_TRACE_REFS macro by default in --with-pydebug build. There is a new opt-in --with-trace-refs option for configure. We have a dedicated buildbot to ensure that the feature continue to work.
* In Python 3.8, I modified the debug hooks on Python memory allocators to omit the serial number by default. It reduces the memory footprint when these hooks are used (1 size_t per memory block). Extract of Objects/obmalloc.c:
/* Uncomment this define to add the "serialno" field */
/* #define PYMEM_DEBUG_SERIALNO */
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40781>
_______________________________________
More information about the Python-bugs-list
mailing list