This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch: Bitmap descriptor GC marking
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: Patch: Bitmap descriptor GC marking
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Sun, 7 May 2000 10:13:15 -0700 (PDT)
- Cc: java-patches at sourceware dot cygnus dot com, "Boehm, Hans" <hans_boehm at hp dot com>
- References: <391533E6.4BE4D970@albatross.co.nz>
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.
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.
I think I'd prefer "void *method[0];", as that is a bit clearer to me.
Anyway, I'm definitely in favor of this change -- both the ones above,
and the overall patch you sent. Hopefully we'll figure out the other
problems soon.
Tom