[issue3329] API for setting the memory allocator used by Python

STINNER Victor report at bugs.python.org
Thu Jun 13 12:54:44 CEST 2013


STINNER Victor added the comment:

> To be exhaustive, another patch should be developed to replace
> all calls for malloc/realloc/free by
> PyMem_Malloc/PyMem_Realloc/PyMem_Free.

I created issue #18203 for this point.

> PyObject_Malloc() is still using mmap() or malloc() internally
> for example.

Arena allocator can be replaced or hooked with PyObject_SetArenaAllocators() of my lastest patch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3329>
_______________________________________


More information about the Python-bugs-list mailing list