This is the mail archive of the gcc-patches@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: malloc-based ggc-page


On Jan 21, 2000, Richard Henderson <rth@cygnus.com> wrote:

> I don't see the point of playing malloc tricks when we can just
> provide the whole implementation.  And more efficiently than the
> tricks to boot.

The point is:

>> And then, we wouldn't be allowing the users of libiberty to choose
>> their own memory management systems.

> What, you're suggesting any generic installed libiberty would
> provide this memory management stuff?

No, I'm not.  You are :-)

Should libiberty supply a portable valloc replacement that relies upon
GNU malloc, users of this replacement wouldn't have the choice to
replace malloc.  With the tricky solution I have came up with, that
works with *any* malloc implementation, they would.

-- 
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]