[Gc] Re: : Heap traversal

Ludovic Courtès ludo at gnu.org
Thu Oct 22 04:34:09 PDT 2009


Hello,

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

> Sorry.  That's what you get for asking hard questions :-)

Heh heh.

[...]

> 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.

Well, this sounds like a good plan to me.  I’m not offering to work on
it, though, as I don’t want to spend too much time on it and I’m not
familiar with this area, but I’d be happy to test and provide feedback.
:-)

Thanks,
Ludo’.



More information about the Gc mailing list