This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa PATCH] Pick memory consumption low hanging fruit
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Andrew MacLeod <amacleod at redhat dot com>
- Cc: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 19 Nov 2003 15:21:46 -0800
- Subject: Re: [tree-ssa PATCH] Pick memory consumption low hanging fruit
- References: <200311181955.hAIJtdwg001593@speedy.slc.redhat.com><1069194489.30703.332.camel@p4>
Andrew MacLeod <amacleod@redhat.com> writes:
> Sigh. I dont suppose there would be a simple way to combine GC and a
> machanism for using GC memory, yet knowing when we are done with memory.
> When we get rid of a PHI node, we know we're done with it. It would be
> awful nice if we could say we're done with this, so it get put on a free
> list, and used the next time we need a PHI node. It seems silly to
> ignore this kind of information simply because we have agarbage
> colector that will figure it out for us.So have GC, and GC_free()..
There are many examples of this. Look at scope_freelist in c-decl.c,
for instance.
--
- Geoffrey Keating <geoffk@geoffk.org>