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: 4.0.0 JNI/reflection invocation 2/4/8 times as slow as in 3.3.3


Okay, bug #1, gcc3.4 crashing, is due to a bug in natMethod (I think it
was), which is trying to call an interface.  I think this could be
worked around by not calling interface methods via jni/reflection in
gcc.3.4, for example by calling my own HashMap next/isNext() methods. 

As understand it, it is impossible to call virtual methods via
jni/reflection in 3.3.3, possible in gcc 3.4, but it fails to detect
interfaces properly.  So this crash is actually a feature, not a bug. :)

Now on with the real problem, the increasing jni/reflection overhead.


Jost



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