summaryrefslogtreecommitdiff
path: root/runtime/class_linker_test.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-10-14 15:14:08 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2022-10-18 14:53:38 +0000
commitb47fc9709ca8d36c44dca81dcb8cc211e933f082 (patch)
tree9c3fcb367eef833727dd169f8ace61fe3bdf9d7e /runtime/class_linker_test.cc
parent16a0d41fcd18b1082a00cef1506a352ccfa27da6 (diff)
Add pure array versions of some dex cache fields.
These arrays will be used when: - The size in the dex file is below the threshold to create a dex cache array. - Startup (will do in a follow-up CL) Given they are pure arrays, they can also be accessed directly from nterp. This can be implemented in a follow-up CL. Test: test.py Change-Id: Ie1b8aca3ac45eefa9866127ffc96e94e3a694cc0
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r--runtime/class_linker_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc
index bd654bb73b..e7e5554d7a 100644
--- a/runtime/class_linker_test.cc
+++ b/runtime/class_linker_test.cc
@@ -684,10 +684,16 @@ struct DexCacheOffsets : public CheckOffsets<mirror::DexCache> {
addOffset(OFFSETOF_MEMBER(mirror::DexCache, location_), "location");
addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_call_sites_), "resolvedCallSites");
addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_fields_), "resolvedFields");
+ addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_fields_array_), "resolvedFieldsArray");
addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_method_types_), "resolvedMethodTypes");
+ addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_method_types_array_),
+ "resolvedMethodTypesArray");
addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_methods_), "resolvedMethods");
+ addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_methods_array_), "resolvedMethodsArray");
addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_types_), "resolvedTypes");
+ addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_types_array_), "resolvedTypesArray");
addOffset(OFFSETOF_MEMBER(mirror::DexCache, strings_), "strings");
+ addOffset(OFFSETOF_MEMBER(mirror::DexCache, strings_array_), "stringsArray");
}
};