bpo-36611: Disable serialno field of debug memory allocators by vstinner · Pull Request #12796 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

serhiy-storchaka

Omit serialno field from debug hooks on Python memory allocators to
reduce the memory footprint by 5%.

Enable tracemalloc to get the traceback where a memory block has been
allocated when a fatal memory error is logged to decide where to put
a breakpoint.

Compile Python with PYMEM_DEBUG_SERIALNO defined to get back the
field.