Re[6]: [Gc] Segfault in GC_mark_from

Ivan Maidanski ivmai at mail.ru
Thu Oct 30 05:12:17 PST 2008


Hi!

"Boehm, Hans" <hans.boehm at hp.com> wrote:
> > -----Original Message-----
> > From:  Bruce Hoult
> >
> > 2008/10/23 Ivan Maidanski <ivmai at mail.ru>:
> > > Hi!
> > >
> > > "Bruce Hoult" <bruce at hoult.org> wrote:
> > >>
> > >> 2008/10/23 Ivan Maidanski <ivmai at mail.ru>:
> > >> > So, I think, GC_general_register_disappearing_link()
> > should be changed either:
> > >> > - by adding an assertion for obj argument (HDR(obj) != NULL); or
> Thanks.  I did that in my tree.  Actually, I'm doing GC_ASSERT(GC_base(obj) == obj), which is slower and more precise.
> 
> Hans

Actually, this doesn't work in GC_DEBUG mode.
Should be: GC_ASSERT(obj != NULL && GC_base(obj) == obj)

Bye.



More information about the Gc mailing list