summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-07 02:05:46 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-07-07 02:05:46 +0200
commitbf95048c04e98cbbec367c6112d057f19aa441ae (patch)
tree0e79e6acaa5097c00ac4f1b742eb17ae8c11ab1e /Python/pythonrun.c
parent9fec0e6656f5cf02eadfbae7d881ad67a3475290 (diff)
downloadcpython-bf95048c04e98cbbec367c6112d057f19aa441ae.tar.gz
Issue #3329: Implement the PEP 445
Add new enum: * PyMemAllocatorDomain Add new structures: * PyMemAllocator * PyObjectArenaAllocator Add new functions: * PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree() * PyMem_GetAllocator(), PyMem_SetAllocator() * PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator() * PyMem_SetupDebugHooks() Changes: * PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead of calling PyObject_Malloc()/PyObject_Realloc() in debug mode. * PyObject_Malloc()/PyObject_Realloc() now falls back to PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes. * Redesign debug checks on memory block allocators as hooks, instead of using C macros
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions