You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by Apache Wiki <wi...@apache.org> on 2008/05/12 11:08:55 UTC

[Harmony Wiki] Update of "Jitrino OPT/light jni" by Mikhail Fursov

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by Mikhail Fursov:
http://wiki.apache.org/harmony/Jitrino_OPT/light_jni

New page:
''' 'light_jni' ''' - allows to call some predefined JNI methods directly, without use of JNI stub.
[[BR]][[BR]]
If a JNI method does not use Java environment it can be called directly without creation of JNI stub. 
[[BR]]
In this case NULL is passed as a parameter to a method instead of JNIEnv*.
[[BR]][[BR]]
By default the optimization works only for hardcoded set of known methods.
To make it work for your method, use the following command line option:

{{{
-XX:jit.arg.codegen.light_jni.light_jni_methods=my/Method.foo1,my/Method.foo2
}}}