This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients amaury.forgeotdarc, kristjan.jonsson, ncoghlan, vstinner
Date 2013-06-13.10:52:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The issue #3329 proposes an API to replace memory allocator functions. But Python calls directly malloc(), realloc() and free() in some functions, so custom allocators would not be used there.

Examples of functions calling malloc/realloc/free directly: _PySequence_BytesToCharpArray(), block_new() (of pyarena.c), find_key() (of thread.c), PyInterpreterState_New(), win32_wchdir(), posix_getcwd(), Py_Main(), etc.

We have to be careful with the GIL: PyMem_*() functions can only be called when holding the GIL.
Date User Action Args
2013-06-13 10:52:39vstinnersetrecipients: + vstinner, amaury.forgeotdarc, ncoghlan, kristjan.jonsson
2013-06-13 10:52:39vstinnersetmessageid: <>
2013-06-13 10:52:39vstinnerlinkissue18203 messages
2013-06-13 10:52:39vstinnercreate