This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Using ggc-page with plain malloc


On Jan 21, 2000, Wolfram Gloger <Wolfram.Gloger@dent.med.uni-muenchen.de> wrote:

> I would suggest to use anonymous mmap() or mmap() on /dev/zero
> (whereever one of those is available) to obtain pages of memory.

That's what we use as the first option.  malloc() is to be used as a
fallback solution when neither mmap nor valloc are available.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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