summaryrefslogtreecommitdiffstats
path: root/runtime/well_known_classes.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-03-24 13:30:28 -0700
committerMathieu Chartier <mathieuc@google.com>2015-03-29 14:13:08 -0700
commitdaaf3265806eb2eadb2e03302bd68022fab5ca28 (patch)
treeaff5d6d53d6d2b65995aa204839f88ee66400989 /runtime/well_known_classes.h
parent68e22f3b982ff9ccbdfb3b65b7cfc16fcae907ba (diff)
downloadart-daaf3265806eb2eadb2e03302bd68022fab5ca28.zip
art-daaf3265806eb2eadb2e03302bd68022fab5ca28.tar.gz
art-daaf3265806eb2eadb2e03302bd68022fab5ca28.tar.bz2
Add AccessibleObject and Field to mirror
Main motivation is to remove all the functionality / field access on java side to ArtField. Also comes with some reflection speedups / slowdowns. Summary results: getDeclaredField/getField are slower mostly due to JNI overhead. However, there is a large speedup in getInt, setInt, GetInstanceField, and GetStaticField. Before timings (N5 --compiler-filter=everything): benchmark ns linear runtime Class_getDeclaredField 782.86 === Class_getField 832.77 === Field_getInt 160.17 = Field_setInt 195.88 = GetInstanceField 3214.38 ============== GetStaticField 6809.49 ============================== After: Class_getDeclaredField 1068.15 ============ Class_getField 1180.00 ============== Field_getInt 121.85 = Field_setInt 139.98 = GetInstanceField 1986.15 ======================= GetStaticField 2523.63 ============================== Bug: 19264997 Change-Id: Ic0d0fc1b56b95cd6d60f8e76f19caeaa23045c77
Diffstat (limited to 'runtime/well_known_classes.h')
-rw-r--r--runtime/well_known_classes.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/well_known_classes.h b/runtime/well_known_classes.h
index 1a4f0f8..2df1c0e 100644
--- a/runtime/well_known_classes.h
+++ b/runtime/well_known_classes.h
@@ -103,7 +103,6 @@ struct WellKnownClasses {
static jfieldID dalvik_system_DexPathList__Element_dexFile;
static jfieldID dalvik_system_PathClassLoader_pathList;
static jfieldID java_lang_reflect_AbstractMethod_artMethod;
- static jfieldID java_lang_reflect_Field_artField;
static jfieldID java_lang_reflect_Proxy_h;
static jfieldID java_lang_Thread_daemon;
static jfieldID java_lang_Thread_group;