From b47fc9709ca8d36c44dca81dcb8cc211e933f082 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 14 Oct 2022 15:14:08 +0100 Subject: 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 --- runtime/class_linker_test.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/class_linker_test.cc') 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 { 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"); } }; -- cgit v1.2.3-59-g8ed1b