This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: malloc-based ggc-page
>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
>> So, what real systems that people really use don't already come
>> with, at the very least, valloc?
Alexandre> Dunno. But Kaffe does support malloc, so someone must
Alexandre> have met this problem at some point.
I don't think that in and of itself that's a good enough argument.
I'd wait until we actually encouter such a beast.
>> Then, I would still suggest that you implement valloc in
>> libiberty.
Alexandre> BTW, why not just move the whole page allocation system
Alexandre> into libiberty. I mean, including mmap anonymous, mmap
Alexandre> /dev/zero and plain valloc? This would make it far
Alexandre> more reusable!
Yes, this would be a good idea. But, it should still be moved in
separate pieces! The generic parts of the collector could be moved to
libiberty. So could valloc. But, I still don't feel they should be
combined.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com