RFC: make linking BC-compiled classes more lazy - part one
Robert Schuster
theBohemian@gmx.net
Wed Nov 23 13:36:00 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
this patch fixes half of the problems I mentioned in bug 24616[0]. For further
details about the approach taken see the bug report. Another patch which fixes
the remaining bits is already prepared.
This patch makes a lot more sense with my previous fixes for the verifier[1]. :)
2005-11-23 Robert Schuster <robertschuster@fsfe.org>
* link.cc:
(_Jv_Linker::find_field_helper): Added checks.
(_Jv_Linker::find_field): Use exception swallowing class resolution
and added early return.
(_Jv_ThrowNoClassDefFoundErrorTrampoline): New function.
(_Jv_Linker::link_symbol_table): Use exception swallowing class
resolution, added ffi_closure installation routine.
(_Jv_Linker::ensure_class_linked): Added string check which does
not trigger class resolution.
* java/lang/natClassLoader.cc:
(_Jv_FindClassNoException): New method.
* java/lang/Class.h:
(_Jv_FindClassNoException): New method declaration.
* jvm.h:
(_Jv_FindClassNoException): New method declaration.
(_Jv_FindClassFromSignatureNoException): New method declaration.
* prims.cc:
(_Jv_FindClassFromSignatureNoException): New method.
cya
Robert
[0] - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616
[1] - http://gcc.gnu.org/ml/java-patches/2005-q4/msg00213.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDhHBVG9cfwmwwEtoRAnDTAJwNITGv/VvpU4VrFy4JrRBn+75AHwCfW1Oy
76UB97O/WitB1jnvTUoQGG4=
=129U
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcj-lazy-linker-part1.diff
Type: text/x-patch
Size: 13520 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20051123/5eaad39e/attachment.bin>
More information about the Java-patches
mailing list