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


>
> 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()..

The zone collector keeps free pages zone specific.
So if you had a phi node zone (or an ssa nodes zone), until it released
those pages (which happens if they weren't used last collection), they
would be reused only for the phi node/ssa nodes.
--Dan


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