This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: java class registration via .jcr section


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]