This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: malloc-based ggc-page
On Jan 21, 2000, Mark Mitchell <mark@codesourcery.com> wrote:
>>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
Alexandre> I was actually just talking about moving alloc_anon(),
Alexandre> free_page() and release_pages() into a portable xvalloc
Alexandre> libiberty module. The garbage collector engine would
Alexandre> remain within gcc, at least for now.
> I'd even structure it with one more level, though -- put the portable
> valloc stuff in one place, and build the alloc_anon thing on top of
> it. Does that make sense?
I can't see how this would make sense. All of mmap_anonymous,
mmap_anywhere, valloc and dirty_malloc_tricks attain the same goal,
which is to obtain a suitably-aligned page. I don't see any reason to
separate the mmap-based implementations from the others.
--
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