This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj-compiled jigsaw is running
- To: Cedric Berger <cedric at wireless-networks dot com>
- Subject: Re: gcj-compiled jigsaw is running
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Fri, 4 May 2001 09:39:10 -0700 (PDT)
- cc: java at gcc dot gnu dot org
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