This is the mail archive of the java-discuss@sources.redhat.com 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: Does -fjni work with recent builds?


>>>>> "Alex" == Alexandre Petit-Bianco <apbianco@cygnus.com> writes:

Alex> Tom, since `meth' (held by `meth_var') in build_jni_stub is a
Alex> global symbol, shouldn't it be created only once?

Nope.  We need a different such symbol for each native method.  `meth'
is a per-stub cache of the underlying JNI method.

I don't understand why this doesn't work.  `meth' should be local to
the stub (but static).  That is why TREE_STATIC is 1 but TREE_PUBLIC
and DECL_EXTERNAL are 0.  I must be missing something.

Tom

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