summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-10-10 13:58:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-10-10 13:58:42 (GMT)
commit6cf185dc064577c6f472c86741e91fb28ec82e2d (patch)
tree2fd36a0cd90c46c84eb9ba6d07eb32345e6c5e8d /Doc/c-api
parent7c74de4d00dc29143302bd2f718b3e3b04dafe9b (diff)
downloadcpython-6cf185dc064577c6f472c86741e91fb28ec82e2d.zip
cpython-6cf185dc064577c6f472c86741e91fb28ec82e2d.tar.gz
cpython-6cf185dc064577c6f472c86741e91fb28ec82e2d.tar.bz2
Issue #18874: _PyObject_Malloc/Realloc/Free() now falls back on
_PyMem_RawMalloc/Realloc/Free, instead of _PyMem_Malloc/Realloc/Free. So it becomes possible to use the fast pymalloc allocator for the PYMEM_DOMAIN_MEM domain (PyMem_Malloc/Realloc/Free functions).
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/memory.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index e4a759b..a82e1c2 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -288,8 +288,8 @@ Customize PyObject Arena Allocator
Python has a *pymalloc* allocator for allocations smaller than 512 bytes. This
allocator is optimized for small objects with a short lifetime. It uses memory
mappings called "arenas" with a fixed size of 256 KB. It falls back to
-:c:func:`PyMem_Malloc` and :c:func:`PyMem_Realloc` for allocations larger than
-512 bytes. *pymalloc* is the default allocator used by
+:c:func:`PyMem_RawMalloc` and :c:func:`PyMem_RawRealloc` for allocations larger
+than 512 bytes. *pymalloc* is the default allocator used by
:c:func:`PyObject_Malloc`.
The default arena allocator uses the following functions: