diff options
author | 2014-03-13 23:45:53 -0700 | |
---|---|---|
committer | 2014-03-14 11:28:10 -0700 | |
commit | 53b8b09fc80329539585dcf43657bc5f4ecefdff (patch) | |
tree | cac0f82fbb89bd907104e3fed6c36203e11a3de0 /runtime/native/java_lang_Runtime.cc | |
parent | 0dea9872082bc3e576ed6cefed86b0d6c0c45ffd (diff) |
Refactor reflective method invocation.
Move invocation code out of JNI internal into reflection, including ArgArray
code. Make reflective invocation use the ArgArray to build arguments rather
than allocating a jvalue[] and unboxing arguments into that.
Move reflection part of jni_internal_test into reflection_test.
Make greater use of fast JNI.
Change-Id: Ib381372df5f9a83679e30e7275de24fa0e6b1057
Diffstat (limited to 'runtime/native/java_lang_Runtime.cc')
-rw-r--r-- | runtime/native/java_lang_Runtime.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/native/java_lang_Runtime.cc b/runtime/native/java_lang_Runtime.cc index f6149fff44..636be5d2ab 100644 --- a/runtime/native/java_lang_Runtime.cc +++ b/runtime/native/java_lang_Runtime.cc @@ -92,12 +92,12 @@ static jlong Runtime_freeMemory(JNIEnv*, jclass) { } static JNINativeMethod gMethods[] = { - NATIVE_METHOD(Runtime, freeMemory, "()J"), + NATIVE_METHOD(Runtime, freeMemory, "!()J"), NATIVE_METHOD(Runtime, gc, "()V"), - NATIVE_METHOD(Runtime, maxMemory, "()J"), + NATIVE_METHOD(Runtime, maxMemory, "!()J"), NATIVE_METHOD(Runtime, nativeExit, "(I)V"), NATIVE_METHOD(Runtime, nativeLoad, "(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/lang/String;"), - NATIVE_METHOD(Runtime, totalMemory, "()J"), + NATIVE_METHOD(Runtime, totalMemory, "!()J"), }; void register_java_lang_Runtime(JNIEnv* env) { |