diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 00:05:46 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 00:05:46 (GMT) |
commit | 0507bf56f0b1064a179464eb3a9d524fd6dad815 (patch) | |
tree | 3221e4356dddf25fd2aef3f10f6d07e6e7e26255 /PCbuild | |
parent | df715ba54d6a5cad9f59bffe1c2180691a999450 (diff) | |
download | cpython-0507bf56f0b1064a179464eb3a9d524fd6dad815.zip cpython-0507bf56f0b1064a179464eb3a9d524fd6dad815.tar.gz cpython-0507bf56f0b1064a179464eb3a9d524fd6dad815.tar.bz2 |
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 'PCbuild')
0 files changed, 0 insertions, 0 deletions