Skip to content

Commit 1407509

Browse files
mienxiupull[bot]
authored andcommitted
C-API docs: Clarify the size of arenas (#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.
1 parent 173cfe3 commit 1407509

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/memory.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,8 @@ The pymalloc allocator
626626
627627
Python has a *pymalloc* allocator optimized for small objects (smaller or equal
628628
to 512 bytes) with a short lifetime. It uses memory mappings called "arenas"
629-
with a fixed size of 256 KiB. It falls back to :c:func:`PyMem_RawMalloc` and
629+
with a fixed size of either 256 KiB on 32-bit platforms or 1 MiB on 64-bit
630+
platforms. It falls back to :c:func:`PyMem_RawMalloc` and
630631
:c:func:`PyMem_RawRealloc` for allocations larger than 512 bytes.
631632
632633
*pymalloc* is the :ref:`default allocator <default-memory-allocators>` of the

0 commit comments

Comments
 (0)