[Patches] [ python-Patches-401104 ] Optional object mem allocator

nobody nobody@sourceforge.net
Mon, 26 Feb 2001 20:57:19 -0800


Artifact #401104, was updated on 2000-08-06 20:53
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=401104&group_id=5470

Category: core (C code)
Group: None
Status: Closed
Priority: 5
Submitted By: Vladimir Marangozov
Assigned to: Neil Schemenauer
Summary: Optional object mem allocator

Initial Comment:
 

----------------------------------------------------------------------

Comment By: Barry Warsaw
Date: 2001-02-26 08:53

Message:
Logged In: YES 
user_id=12800

Giving Neil the green light.

----------------------------------------------------------------------

Comment By: Vladimir Marangozov
Date: 2000-08-18 21:11

Message:
Update: (1) fixing a missing case for realloc(p,0) == free(p) + ret NULL
(2) simplify the hooks interface: set_hooks/fetch_hooks are better than
install/uninstall.

----------------------------------------------------------------------

Comment By: Vladimir Marangozov
Date: 2000-08-12 13:31

Message:
Status set to Postponed.

Although promising, this hasn't enjoyed much user testing for the 2.0
time frame (partly because of the lack of an introspective Python
interface which can't be completed in time according to the release schedule).

Assigned to marangoz who's responsible to reopen it again in due time
(except if BDFL decides otherwise).

----------------------------------------------------------------------

Comment By: Vladimir Marangozov
Date: 2000-08-07 09:19

Message:
Thanks. Fixed (acconfig.h)

----------------------------------------------------------------------

Comment By: Thomas Wouters
Date: 2000-08-07 06:30

Message:
Small nit: you shouldn't edit config.h.in yourself, it's autogenerated from acconfig.h and configure.in (with 'autoheader', part of 'autoconf.) You should define WITH_PYMALLOC in acconfig.h, not config.h.in, and run 'autoheader' and 'autoconf' to generate a new 'configure'.

I'm in the process of testing this patch on Linux and BSDI, by the way :)


----------------------------------------------------------------------

Comment By: Vladimir Marangozov
Date: 2000-08-06 21:05

Message:
A stab on obmalloc.c -- an optional object allocator.

A configure "--with(out)-pymalloc" option is introduced for enabling
specialized mallocs. Off by default.

The code is included conditionally at the end of object.c

obmalloc.c contains only the core malloc functionality. No profiling, nor
debugging are there -- these would come as separate (and optional) 
modules: memprof.c & memdebug.c in the Modules/ directory and will
exploit the hooks of the allocator.

I've managed to draw a rather nice diagram in the comments at the top
of obmalloc.c explaining what this stuff is all about. Look there.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=401104&group_id=5470