[Python-Dev] pymalloc killer
Martin v. Loewis
martin@v.loewis.de
30 Mar 2002 09:01:51 +0100
Guido van Rossum <guido@python.org> writes:
> All I can do is encourage you to keep trying. I find it quite
> encouraging that you found a constant-time test for non-arena memory
> at all. Making it thread-safe should only add a tiny constant time.
Are we discussing using PyMalloc even when not holding the GIL? That
can't possibly work: pymalloc maintains linked lists of free memory;
if two allocate or deallocate objects in the same pool simultaneously,
bad things will happen.
Regards,
Martin