• Victor Stinner's avatar
    bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) · 82af0b63
    Victor Stinner authored
    _PyObject_Dump() now uses an heuristic to check if the object memory
    has been freed: log "<freed object>" in that case.
    
    The heuristic rely on the debug hooks on Python memory allocators
    which fills the memory with DEADBYTE (0xDB) when memory is
    deallocated. Use PYTHONMALLOC=debug to always enable these debug
    hooks.
    82af0b63
pymem.h 8.84 KB