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]

Re: gcj-compiled jigsaw is running



On Fri, 4 May 2001, Cedric Berger wrote:
> How is the interpreter implemented?

There is no class$ symbol for interpreted classes.  They aren't available
to CNI either, except compiled code can resolve an interpreted class with
java::lang::Class::forName and invoke methods in its superclass
(java.lang.Object) or via reflection.

You can of course use JNI.  (And now that I think about it, why not CNI
minus the static members?  Field and vtable layout should be the same as
if it were compiled.)

> Is there a way to "dlopen" the same  library more than once?

If you find one, let me know... it seems dlopen always returns the same
handle for two invocations with the same name (though I don't know if it's
smart about links).

Ideally, you'd want it to map the readonly sections once, to conserve
memory.

Jeff


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