Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/c-api/memory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,13 @@ This allocator is disabled if Python is configured with the
:option:`--without-pymalloc` option. It can also be disabled at runtime using
the :envvar:`PYTHONMALLOC` environment variable (ex: ``PYTHONMALLOC=malloc``).

Typically, it makes sense to disable the pymalloc allocator when building
Python with AddressSanitizer (ASan) which helps uncover low level bugs within
the C code. While pymalloc doesn't break under ASan, the ASan works more
effectively with the system allocator (since we do not add any padding in
between the objects managed/allocated by pymalloc and we do not annotate/poison
the "inaccessible" memory between the pymalloc allocated objects).

Customize pymalloc Arena Allocator
----------------------------------

Expand Down
Loading