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)


Jeffrey A Law <law@redhat.com> writes:

> On Wed, 2004-09-15 at 14:08, Michael Matz wrote:
> >  The point is, that currently collection is slower the more things it has 
> > to walk.
> Reducing this was never the primary goal of ggc_free.  The primary 
> goal of ggc_free was to return memory to the GC system faster so
> that it could be re-used before the next collection point, thus
> potentially reducing the peak memory usage.
> 
> The fact that we have fewer things to mark was a secondary effect.

Actually, it's not an effect at all.  You can only safely use ggc_free
on an object which is not referenced.  Objects which are not
referenced are not marked.  Therefore, ggc_free does not change the
number of objects marked.


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