Skip to content

Commit e8eb2bf

Browse files
[3.11] C-API docs: Clarify the size of arenas (GH-110895) (#110947)
C-API docs: Clarify the size of arenas (GH-110895) Clarify the size of arenas From 3.10.0 alpha 7, the pymalloc allocator uses arenas with a fixed size of 1 MiB on 64-bit platforms instead of 256 KiB on 32-bit platforms. (cherry picked from commit f07ca27) Co-authored-by: Mienxiu <[email protected]>
1 parent 6502a13 commit e8eb2bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/memory.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@ The pymalloc allocator
620620
621621
Python has a *pymalloc* allocator optimized for small objects (smaller or equal
622622
to 512 bytes) with a short lifetime. It uses memory mappings called "arenas"
623-
with a fixed size of 256 KiB. It falls back to :c:func:`PyMem_RawMalloc` and
623+
with a fixed size of either 256 KiB on 32-bit platforms or 1 MiB on 64-bit
624+
platforms. It falls back to :c:func:`PyMem_RawMalloc` and
624625
:c:func:`PyMem_RawRealloc` for allocations larger than 512 bytes.
625626
626627
*pymalloc* is the :ref:`default allocator <default-memory-allocators>` of the

0 commit comments

Comments
 (0)