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: Speeding up GC


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


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