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: Mark Wielaard <mark at klomp dot org>
- Date: Sun, 24 Jun 2001 11:33:15 +0200
- Cc: java-patches at gcc dot gnu dot org
- References: <m2u218owwn.fsf@kelso.bothner.com>
Hi,
On Fri, Jun 22, 2001 at 05:35:52PM -0700, Per Bothner wrote:
> I have written a class SharedLibLoader, which is a ClassLoader that
> wraps a shared library. In that case the classes in the shared library
> should *not* be in the global class table (as these classes are not loaded
> by the system class loader), but instead the classes need to entered
> in a table local to the SharedLibLoader. Hence we need to temporarily
> bypass the _Jv_RegisterClass during the dlopen call.
>
> It might be useful to include SharedLibLoader in libgcj, if people
> think that would be desirable.
Could you post it to the list? I would like to better understand how native
code shared libraries and Java ClassLoaders interact. Seeing some more example
code would really help.
Thanks,
Mark
--
Stuff to read:
<http://www.toad.com/gnu/whatswrong.html>
What's Wrong with Copy Protection, by John Gilmore