reg_known_value and copying collection
Daniel Berlin
dberlin@dberlin.org
Fri Dec 13 11:21:00 GMT 2002
On Fri, 13 Dec 2002, Geoff Keating wrote:
> > Date: Fri, 13 Dec 2002 13:38:37 -0500 (EST)
> > From: Daniel Berlin <dberlin@dberlin.org>
>
> > The more variables you make GC'd, the less places this might matter.
> > The more we don't apply a moving gcc, the more fragmentation and worse
> > locality gets.
> >
> > So ideally, I want to do both.
>
> Remember, there is a cost to having more variables GCed, and a cost to
> compacting memory. The most efficient solution might not be to GC
> every variable and compact memory every time.
Of course.
The normal way to do this is *not* to not mark things to be GC'd, but
instead to use a write barrier so we know what's changed since the last
collection, and thus, needs to be rescanned.
--Dan
More information about the Gcc
mailing list