[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode
STINNER Victor
report at bugs.python.org
Wed Mar 9 09:15:00 EST 2016
STINNER Victor added the comment:
More complete patch (version 2):
* Document PYTHONMALLOC environment variable
* Add PYTHONMALLOC=debug to install debug hooks without forcing a specific memory allocator (keep the default memory allocator)
* Fix sys._debugmallocstats() for PYTHONMALLOC=malloc: don't display pymalloc stats
* _testcapi.pymem_api_misuse(): more realistic code, use PyMem_Mallloc() + PyMem_RawFree(). This code works in release mode (since PyMem and PyMem_Raw use the same allocator: malloc/free), but fail with a fatal error with debug hooks (API misused).
----------
Added file: http://bugs.python.org/file42102/pymem-2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26516>
_______________________________________
More information about the Python-bugs-list
mailing list