This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: patches to re-direct _Jv_RegisterClass
- To: Per Bothner <per at bothner dot com>
- Subject: Re: patches to re-direct _Jv_RegisterClass
- From: Tom Tromey <tromey at redhat dot com>
- Date: 22 Jun 2001 19:54:09 -0600
- Cc: java-patches at gcc dot gnu dot org
- References: <m2u218owwn.fsf@kelso.bothner.com>
- Reply-To: tromey at redhat dot com
>>>>> "Per" == Per Bothner <per@bothner.com> writes:
Per> This patch allows _Jv_RegisterClass to be bypassed using a "hook
Per> function".
I think there should be a comment by _Jv_RegisterClassHook explaining
that you must acquire the Class mutex before changing it. This might
not be necessary, since it might be the case that no existing or
future system can dlopen and invoke static constructors on two shared
libraries at once. However, it is safe and easy.
Per> It might be useful to include SharedLibLoader in libgcj, if
Per> people think that would be desirable.
How does it differ from the shared library code already in the default
classloader?
Per> +void _Jv_RegisterClassHookDefault (jclass klass)
The `void' should appear on its own line.
Tom