Patch: java class registration via .jcr section

Tom Tromey tromey@redhat.com
Sun Aug 5 15:16:00 GMT 2001


>>>>> "Anthony" ==   <green@peach.cygnus.co.uk> writes:

Anthony> Here's a revised version of the patch first proposed here:
Anthony> http://gcc.gnu.org/ml/gcc-patches/2001-07/msg02102.html

Anthony> +#ifdef SUPPORTS_WEAK
Anthony> +  void **jcr;
Anthony> +  for (jcr = __JCR_END__ - 1; *jcr != NULL; jcr--)
Anthony> +    _Jv_RegisterClass (*jcr);
Anthony> +#endif

I think we'd prefer to use _Jv_RegisterClasses here.  For one thing
that saves one synchronization per class.  If this means changing
_Jv_RegisterClasses to accept an `int length' argument, that is fine
by me.

Tom



More information about the Java-patches mailing list