This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Speeding up GC
- From: John Levon <levon at movementarian dot org>
- To: Andi Kleen <ak at suse dot de>
- Cc: Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 4 Jun 2002 14:53:44 +0100
- Subject: Re: Speeding up GC
- References: <j47klg8pfy.fsf@informatik.hu-berlin.de.suse.lists.egcs> <20020603180553.A13829@redhat.com.suse.lists.egcs> <p73n0ubcold.fsf@oldwotan.suse.de>
On Tue, Jun 04, 2002 at 12:42:06PM +0200, Andi Kleen wrote:
> Unfortunately changing pages to read only and back is rather expensive.
> Cheaper would be to expose the hardware's page dirty bit to user space
> and use it for this. Apparently some OS like Solaris support it already
> (at least that is what the relevant function in the boehm-gc suggest)
> I guess it could be added to Linux too.
To be most useful that needs to be read/write interface so the dirty bit
can be reset after a full GC, since the GC only cares about
dirty-since-last-GC (variant of card marking), whereas the VM has other
purposes for the dirty bit. It looks possible on x86 at least, by
backing up the dirty bit for the VM's benefit into one of the pte bits
that seem to be unused, as far as I can tell...
regards
john
--
"Do you mean to tell me that "The Prince" is not the set textbook for CS1072
Professional Issues ? What on earth do you learn in that course ?"
- David Lester