[Patches] [Patch #101104] Optional object mem allocator

noreply@sourceforge.net noreply@sourceforge.net
Sat, 12 Aug 2000 13:31:09 -0700


Patch #101104 has been updated. 

Project: 
Category: core (C code)
Status: Postponed
Summary: Optional object mem allocator

Follow-Ups:

Date: 2000-Aug-06 21:05
By: marangoz

Comment:
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.
-------------------------------------------------------

Date: 2000-Aug-07 06:30
By: twouters

Comment:
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 :)

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

Date: 2000-Aug-07 09:19
By: marangoz

Comment:
Thanks. Fixed (acconfig.h)
-------------------------------------------------------

Date: 2000-Aug-12 13:31
By: marangoz

Comment:
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).
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101104&group_id=5470