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: Release RTL bodies after compilation (sometimes)




On Wed, 15 Sep 2004, Diego Novillo wrote:

On Wed, 2004-09-15 at 07:32, Jan Hubicka wrote:

pattern is not really suitable for GC.  Again, the fact that you are
adding ggc_free() here and there may be a symptom of a memory allocation
mismatch.

We already knew/know that for things like basic blocks and edges, there was an allocation mismatch.
If you look at the history, they were either obstack or xmalloc'd (i forget which), and i changed it to be pool allocated.


However, in order to make the bb annotations reachable to the GC, we switched bb's back to gc allocation.
Personally, I still think the bb's/edge's should be pool allocated.
It's the obvious match for them.
However, the GC can't walk un-gc'd memory at all, so we can't do that.
It's GC limitations getting in the way of proper memory management here.
--Dan



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