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


> Well the fundamental problem is the garbage collector collects pages,
> not the underlying objects on those pages.

Which is something i've been working on.

The zone collector doesn't collect pages, actually, it has a per-object
header it uses for marking and whatnot.

One of the things on the bottom of my todo list is to finish the type
coding of objects so that we just need the root addresses, and can collect
from there.


 >
> So to do what you want, you need to ensure that the PHI nodes (or SSA_NAMEs)
> are all allocated on the same page, then you release the page.  The thing
> to watch out for is that we don't end up effectively recreating obstacks
> which had zone-like qualities, but sucked in more ways than I care to
> remember.
>
> I believe this is the kind of issue the zone allocator is supposed to
> help with.  I haven't looked at it though.
>
>
> jeff
>
>
>
>
>


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