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


>>>>> "Per" == Per Bothner <per@bothner.com> writes:

>> How does it differ from the shared library code already in the default
>> classloader?

Per> Is there any shared library code already in the default
Per> classloader?  I just see some code in natRuntime, but no
Per> classloader support.

Look at gnu::gcj::runtime::VMClassLoader::findClass in
natClassLoader.cc.  This is used by default.  The class loader code is
really convoluted.  I've never tried to clean it up.

I've also neglected documenting this feature :-(.  That is a serious
problem.

Per> Basically, SharedLibLoader is analogous to UrlClassLoader, in
Per> that it manages a bunch of classes that have their private name
Per> space, but from a .so rather than a .jar.

That's cool.  Can the private namespace stuff work portably?  I mean,
even with references to global variables and static methods?

Tom


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