[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 06:50:47 EST 2016
STINNER Victor added the comment:
The motivation to support PYTHONMALLOC=malloc (always use malloc) and not just PYTHONMALLOC=debug (enable debug hooks) is to allow to use external memory debugger like Valgrind.
Valgrind doesn't like pymalloc (pymalloc raises false alarms), we had to a configuration option for it: ./configure --with-valgrind.
Using PYTHONMALLOC=malloc allows to use Valgrind on the system Python, it's easier to use. No need to recompile Python.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26516>
_______________________________________
More information about the Python-bugs-list
mailing list