summaryrefslogtreecommitdiff
path: root/Doc/using/cmdline.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-18 11:04:31 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-18 11:04:31 +0100
commitc2fc56836f6cb02ce6436d9eb0342dc595738e9d (patch)
tree8b36c4084231867b414009b4ee81cc1fe5267b30 /Doc/using/cmdline.rst
parent3ca334230712ef0e1b20f046cf62a24a1117a57a (diff)
downloadcpython-git-c2fc56836f6cb02ce6436d9eb0342dc595738e9d.tar.gz
Enhance documentation on malloc debug hooks
Issue #26564, #26516, #26563.
Diffstat (limited to 'Doc/using/cmdline.rst')
-rw-r--r--Doc/using/cmdline.rst16
1 files changed, 10 insertions, 6 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 684ccb63de..45559825b4 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -638,16 +638,20 @@ conflict.
Install debug hooks:
* ``debug``: install debug hooks on top of the default memory allocator
- * ``malloc_debug``: same than ``malloc`` but also install debug hooks
- * ``pymalloc_debug``: same than ``malloc`` but also install debug hooks
+ * ``malloc_debug``: same as ``malloc`` but also install debug hooks
+ * ``pymalloc_debug``: same as ``pyalloc`` but also install debug hooks
+
+ When is compiled in release mode, the default is ``pymalloc``. When Python
+ is compiled in debug mode, the default is ``pymalloc_debug``: debug hooks
+ are installed.
+
+ If Python is configured without ``pymalloc`` support, ``pymalloc`` and
+ ``pymalloc_debug`` are not available, the default is ``malloc`` in release
+ mode and ``malloc_debug`` in debug mode.
See the :c:func:`PyMem_SetupDebugHooks` function for debug hooks on Python
memory allocators.
- .. note::
- ``pymalloc`` and ``pymalloc_debug`` are not available if Python is
- configured without ``pymalloc`` support.
-
.. versionadded:: 3.6