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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 7 Aug 2000 09:19:41 -0700


Patch #101104 has been updated. 

Project: 
Category: core (C code)
Status: Open
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)
-------------------------------------------------------

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

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