what's at the top of your wishlist for libgcj?
Adam Megacz
gcj@lists.megacz.com
Sat Oct 12 10:56:00 GMT 2002
Andrew Haley <aph@redhat.com> writes:
> How would you do it? Every method is reachable by reflection.
Yes, of course reflection is the exception. If you access a method
only via reflection, you need to insert dummy references to it to
prevent the linker from dropping it.
Note that you already have to do this if you're linking with -static,
because the linker will drop unreferenced code with file-level
granularity (in XWT, see org/xwt/plat/GCJ.java). Implementing
vtable-gc would simply increase the granularity to section/method
level.
- a
--
"Through your rags I see your vanity" -- Socrates
More information about the Java
mailing list