Lisandro Dalcin skrev: > No, I think you are wrong. PyMem_Malloc()/PyMem_Free() do not require > the GIL (for non-debug builds, at least), as they are wrappers to > system malloc() and free() (note: malloc(0) actually does > malloc(1))... > > I have always believed PyMem_Malloc call PyArena_Malloc with Python's heap as arena. PyArena_Malloc is a non-threadsafe reimplementation of malloc.
I have a problem finding PyMem_Malloc in Python sources. Sturla Molden _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
