diff options
author | 2017-02-16 16:13:17 -0800 | |
---|---|---|
committer | 2017-02-21 11:40:51 -0800 | |
commit | 3b6f440dbd066f03a737da6d292074f47b3fbc29 (patch) | |
tree | af0da4bdea7ff689929c8e23e1eaf6361dfc3ee8 /runtime/native/java_lang_DexCache.cc | |
parent | 5c19b373ae45ec6d67b41917af63cac8c3ebbe89 (diff) |
jni: Switch to @FastNative for all JNI functions. Deprecate !bang JNI.
Switches all (248) methods that previously used !bang JNI in art/libcore
to all use @FastNative.
Also deprecate !bang JNI since nothing in Android seems to (or should
be) using it anymore.
This measures to be a 3% startup time improvement in system_server.
Test: make test-art-host
Bug: 34955272
Change-Id: I0881f401c7660c79f275235362777bfa58241deb
Diffstat (limited to 'runtime/native/java_lang_DexCache.cc')
-rw-r--r-- | runtime/native/java_lang_DexCache.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/native/java_lang_DexCache.cc b/runtime/native/java_lang_DexCache.cc index ee6dda56a5..8fda4dfaaf 100644 --- a/runtime/native/java_lang_DexCache.cc +++ b/runtime/native/java_lang_DexCache.cc @@ -95,11 +95,11 @@ static void DexCache_setResolvedString(JNIEnv* env, jobject javaDexCache, jint s } static JNINativeMethod gMethods[] = { - NATIVE_METHOD(DexCache, getDexNative, "!()Lcom/android/dex/Dex;"), - NATIVE_METHOD(DexCache, getResolvedType, "!(I)Ljava/lang/Class;"), - NATIVE_METHOD(DexCache, getResolvedString, "!(I)Ljava/lang/String;"), - NATIVE_METHOD(DexCache, setResolvedType, "!(ILjava/lang/Class;)V"), - NATIVE_METHOD(DexCache, setResolvedString, "!(ILjava/lang/String;)V"), + FAST_NATIVE_METHOD(DexCache, getDexNative, "()Lcom/android/dex/Dex;"), + FAST_NATIVE_METHOD(DexCache, getResolvedType, "(I)Ljava/lang/Class;"), + FAST_NATIVE_METHOD(DexCache, getResolvedString, "(I)Ljava/lang/String;"), + FAST_NATIVE_METHOD(DexCache, setResolvedType, "(ILjava/lang/Class;)V"), + FAST_NATIVE_METHOD(DexCache, setResolvedString, "(ILjava/lang/String;)V"), }; void register_java_lang_DexCache(JNIEnv* env) { |