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


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

Re: patches to re-direct _Jv_RegisterClass


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


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