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. PyObject_Malloc() 
is still using mmap() or malloc() internally for example.

Other 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3329>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to