Message191169
I commited my new API to customize memory allocators:
New changeset 6661a8154eb3 by Victor Stinner in branch 'default':
Issue #3329: Add new APIs to customize memory allocators
http://hg.python.org/cpython/rev/6661a8154eb3
I added PyMem_RawMalloc(), PyMem_RawRealloc() and PyMem_RawFree() in the same commit. These functions are wrappers to malloc/realloc/free which can be called without the GIL held. Using these new functions instead of malloc/realloc/free is interesting because the internal functions can be replaced with PyMem_SetRawAllocators() and many checks are added in debug mode (ex: check for buffer under- and overflow). |
|
Date |
User |
Action |
Args |
2013-06-14 23:05:45 | vstinner | set | recipients:
+ vstinner, georg.brandl, amaury.forgeotdarc, ncoghlan, kristjan.jonsson, christian.heimes, serhiy.storchaka |
2013-06-14 23:05:45 | vstinner | set | messageid: <1371251145.24.0.615385065539.issue18203@psf.upfronthosting.co.za> |
2013-06-14 23:05:45 | vstinner | link | issue18203 messages |
2013-06-14 23:05:45 | vstinner | create | |
|