]> granicus.if.org Git - python/commit
Add PYTHONMALLOC env var
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Mar 2016 11:04:26 +0000 (12:04 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Mar 2016 11:04:26 +0000 (12:04 +0100)
commit34be807ca4dfecc5b0a9e577a48535e738dce32b
tree38e0e3860b3fabf2be4938330a1d0f37c5b169ab
parentc877658d1ff5f93f3a2c7b5f0a7ac913b7374838
Add PYTHONMALLOC env var

Issue #26516:

* Add PYTHONMALLOC environment variable to set the Python memory
  allocators and/or install debug hooks.
* PyMem_SetupDebugHooks() can now also be used on Python compiled in release
  mode.
* The PYTHONMALLOCSTATS environment variable can now also be used on Python
  compiled in release mode. It now has no effect if set to an empty string.
* In debug mode, debug hooks are now also installed on Python memory allocators
  when Python is configured without pymalloc.
13 files changed:
Doc/c-api/memory.rst
Doc/using/cmdline.rst
Doc/whatsnew/3.6.rst
Include/pymem.h
Lib/test/test_capi.py
Misc/NEWS
Misc/README.valgrind
Modules/_testcapimodule.c
Modules/main.c
Objects/obmalloc.c
Programs/python.c
Python/pylifecycle.c
Python/sysmodule.c