[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/intern/guardedalloc MEM_guardedalloc.h blender/intern/guardedalloc/intern mallocn.c

stapfx at gmx.de stapfx at gmx.de
Fri Feb 17 08:19:19 CET 2006


> 
> 
> Le 16 févr. 06 à 18:51, Ton Roosendaal a écrit :
> 
> > ton (Ton Roosendaal) 2006/02/16 18:51:01 CET
> >
> >   Modified files:
> >     blender/intern/guardedalloc MEM_guardedalloc.h
> >     blender/intern/guardedalloc/intern mallocn.c
> >
> >   Log:
> >   Added new malloc type in our MEM module; using the unix feature  
> > 'mmap'.
> >
> > ...
> 
> >   Now here's mmap to the rescue! It has a very nice feature to map to
> >   a virtual (non existing) file, allowing to allocate disk-mapped  
> > memory
> >   on the fly. For as long there's real memory it works nearly as  
> > fast as
> >   a regular malloc, and when you go to the swap boundary, it knows  
> > nicely
> >   what to swap first.
> >
> >
> 


glibc malloc for linux already uses mmap for large chunks. Controlled via 
MALLOC_MMAP_THRESHOLD_ and MALLOC_MMAP_MAX_.

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the Bf-committers mailing list