This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: java class registration via .jcr section
- To: <green at peach dot cygnus dot co dot uk>
- Subject: Re: Patch: java class registration via .jcr section
- From: Tom Tromey <tromey at redhat dot com>
- Date: 05 Aug 2001 16:46:07 -0600
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <200108040305.XAA10064@peach.cygnus.co.uk>
- Reply-To: tromey at redhat dot com
>>>>> "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