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]
Other format: [Raw text]

Re: [tree-ssa PATCH] Pick memory consumption low hanging fruit


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>


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