This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: 4.0.0 JNI/reflection invocation 2/4/8 times as slow as in 3.3.3
- From: Jost Boekemeier <jost2345 at yahoo dot de>
- To: java at gcc dot gnu dot org
- Date: Tue, 18 Jan 2005 13:27:15 +0100
- Subject: Re: 4.0.0 JNI/reflection invocation 2/4/8 times as slow as in 3.3.3
- References: <200501170423.j0H4NhjG009910@earth.phy.uc.edu>
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