This is the mail archive of the java@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]
Other format: [Raw text]

Re: GCJ's URLClassloader and 'core' protocol


>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:

>> >  > > You want to load statically compiled classes that are already linked
>> >  > > into an executable, but into a different class loader context?

Andrew> I've never thought about it, to tell you the truth.  It would be
Andrew> troublesome to use, because the linker automatcially discards
Andrew> unreferenced classes when building an executable.  You might as well
Andrew> put stuff into a shared library.

We talked about this a little a while back.  Well, not exactly this,
but the idea of loading a given shared library just once and then
creating several class instances, from different class loaders,
referring to the same object code.

I think the conclusion was that this would make the code more
inefficient by requiring another load to find the otable, or perhaps
impossible due to PIC considerations I didn't quite follow.

Tom


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