This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GC and continuations


On Thu, Feb 17, 2000 at 06:07:03PM +0100, Jost Boekemeier wrote:
> Michael Livshin <mlivshin@bigfoot.com> writes:
> 
> > [ note that changing the Guile allocator to use mmap or brk could be a 
> >   worthwhile project. 
> 
> Doesn't malloc() use brk to allocate memory?   I think there is
> a malloc replacement called mmalloc() (or so) which uses mmap instead
> of brk.  

The malloc() implementation in glibc uses brk() if the allocation is
under certain size, mmap() otherwise. free() will munmap() memory if
possible. Other C libraries typically do just use brk() (which will
rarely allow for returning the memory, so they don't bother adding
the capability).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]