This is the mail archive of the gcc@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: reg_known_value and copying collection



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


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