[Gc] Question on finalization

Jiwon Seo jiwon at stanford.edu
Mon May 14 03:27:52 PDT 2007


I'm trying to run boehm gc on a x86 simulator. (I'm using gc 6.8 version)
The gc works as long as object finalization is not used. But when I start
testing with GC_REGISTER_FINALIZER, I'm getting a assertion error.

In finalize.c, GC_finalize() function, there is this assertion when
enqueuing for objects that are unreachable.

 GC_ASSERT(GC_is_marked(GC_base((ptr_t)curr_fo)));

If that assertion is false, what does that mean? What would you recommend to
check?

Thanks,
-Jiwon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20070514/1956aa5f/attachment.htm


More information about the Gc mailing list