This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch: Bitmap descriptor GC marking
Tom Tromey wrote:
> Bryce> + if (klass->vtable->method[1] != ObjectClass.vtable->method[1])
>
> Bryce> struct _Jv_VTable
> Bryce> {
> Bryce> jclass clas;
> Bryce> - void *method[1];
> Bryce> + void *gc_descr;
> Bryce> + void *method[];
> Bryce> };
>
> These two changes conflict. This is why finalization doesn't work.
Duh! Thanks.
> I've really been wanting to make this second change, and get rid of
> the magic constant "1" in the first change, for a long time. But
> unfortunately it isn't an entirely trivial change to make. We have to
> There are also pieces in array class creation that need to change.
> It's possible there's other code around, which I've convenient
> forgotten right now, which has to deal with this stuff too. Gross.
There is some interpreter code in resolve.cc that needs to change. I think
the array class creation is okay, given that I already changed it to copy
vtable->gc_descr explicitly.
regards
[ bryce ]