[Patches] [ python-Patches-540394 ] Remove PyMalloc_* symbols
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 06 Apr 2002 17:07:00 -0800
Patches item #540394, was opened at 2002-04-07 01:07
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=540394&group_id=5470
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Tim Peters (tim_one)
Summary: Remove PyMalloc_* symbols
Initial Comment:
This patch removes all PyMalloc_* symbols from the
source. obmalloc now implements PyObject_{Malloc,
Realloc, Free}. PyObject_{New,NewVar} allocate using
pymalloc.
I also changed PyObject_Del and PyObject_GC_Del
so that they be used as function designators. Is
changing the signature of PyObject_Del going to cause
any problems? I had to add some extra typecasts when
assigning to tp_free.
Please review and assign back to me.
The next phase would be to cleanup the memory API
usage. Do we want to replace all PyObject_Del calls
with PyObject_Free? PyObject_Del seems to match better
with PyObject_GC_Del.
Oh yes, we also need to change PyMem_{Free, Del, ...} to
use pymalloc's free.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=540394&group_id=5470