[Gc] Re: : Heap traversal

Ludovic Courtès ludo at gnu.org
Sat May 22 09:04:36 PDT 2010


"Boehm, Hans" <hans.boehm at hp.com> writes:

> If we do want to export something along these lines, I think we should
> move the implementation from backgraph.c into a separate file, and
> perhaps have the public variant garbage collect and give us only
> marked objects (incl. on thread local free-lists) holding the lock
> throughout the process.  We could think about clearing per-thread
> free-lists in addition to garbage collecting, but I suspect that
> introduces messy races with simultaneous allocation, and we don't
> really want to go there.
> I'd also be tempted to put the interface into gc_mark.h or a new
> header file, since this is unavoidably an ugly, very low-level
> interface tht requires some awareness of GC implementation details
> that I'd rather hide.

Are there news regarding the implementation of such an API?  :-)


More information about the Gc mailing list