[patch] Move loop structures to gc memory

Ian Lance Taylor iant@google.com
Mon May 14 21:28:00 GMT 2007


Mike Stump <mrs@apple.com> writes:

> On May 14, 2007, at 11:12 AM, Ian Lance Taylor wrote:
> > In general I don't like any use of ggc_free.
> 
> Do you prefer a slower compiler?

I prefer moving data structures out of GC space.  Unfortunately doing
this fully requires fixing our GC implementation.  Or, preferably,
eliminating it.

Using ggc_free with GC just puts us on the road back to the problems
which led us to introduce GC in the first place: we didn't track our
memory allocations properly, so we got confused and got weird crashes.
We introduced GC so that it didn't matter whether we tracked our
memory allocations properly or not.  There was no other reason for GC.
When we use ggc_free, we lose the whole point of having GC.  It just
does not make sense.

Ian



More information about the Gcc-patches mailing list