mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-43774: Remove unused PYMALLOC_DEBUG macro (GH-25711)
Enhance also the documentation of debug hooks on memory allocators.
This commit is contained in:
parent
b1f413e6cf
commit
645ed62fb4
8 changed files with 130 additions and 138 deletions
|
@ -799,17 +799,13 @@ conflict.
|
|||
:c:data:`PYMEM_DOMAIN_MEM` and :c:data:`PYMEM_DOMAIN_OBJ` domains and use
|
||||
the :c:func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain.
|
||||
|
||||
Install debug hooks:
|
||||
Install :ref:`debug hooks <pymem-debug-hooks>`:
|
||||
|
||||
* ``debug``: install debug hooks on top of the :ref:`default memory
|
||||
allocators <default-memory-allocators>`.
|
||||
* ``malloc_debug``: same as ``malloc`` but also install debug hooks.
|
||||
* ``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks.
|
||||
|
||||
See the :ref:`default memory allocators <default-memory-allocators>` and the
|
||||
:c:func:`PyMem_SetupDebugHooks` function (install debug hooks on Python
|
||||
memory allocators).
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
Added the ``"default"`` allocator.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue