[Gc] Re: GCJ, typed malloc, custom mark proc?
junk at giantblob.com
Sun Aug 2 13:22:08 PDT 2009
> James Williams <junk at giantblob.com> wrote:
>> I use Boehm GC as the garbage collector for a compiler and its runtime.
>> I've tried using GC_gcj_malloc without success - even if I use size
>> that cover the whole object or bitmaps with bits for all words in the
>> object set
>> the collector still frees reachable objects. I'm pretty sure my
>> descriptors are
>> right - I'm basing my code on the fake_vtable structs in tests/test.c
>> reading libjava source.
> Hmm, if I understand correctly you say it's completely broken...
> I use it (length-based only) for a long period (GC v7.2a2 or CVS) and
> never observed such things.
> The ways I use it, I've described in
Thanks for the pointer.
I have no reason to think Boehm GC is broken in this instance. I was
looking for reassurance that the GJC interface to libgc is a supported
public interface that I can safely use it from outside of the the GCJ
I think it's most likely that I'm just using GC_gcj_malloc wrongly -
perhaps my descriptors are in the wrong place or are wrongly constructed.
>> Should I expect this to work? Would I be better using typed malloc or a
>> mark function?
>> Any advice gratefully received, thanks,
>> -- James Williams
More information about the Gc