From 5111cb6b246c62a40806940076f9e10761f5f41c Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 10 Oct 2022 12:07:46 +0100 Subject: Refactor and cleanup DexCache. - Introduce macros to avoid duplicating code for each dex cache kind. - Remove preResolvedStrings, this was unused. - Remove dex cache length fields, we can easily infer them. Test: test.py Change-Id: I1e0bc8cf078ce8e09c4d756c63be32cb344fcce1 --- runtime/class_linker_test.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'runtime/class_linker_test.cc') diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index 666f86eca6..a6cf10c264 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -677,14 +677,6 @@ struct DexCacheOffsets : public CheckOffsets { addOffset(OFFSETOF_MEMBER(mirror::DexCache, class_loader_), "classLoader"); addOffset(OFFSETOF_MEMBER(mirror::DexCache, dex_file_), "dexFile"); addOffset(OFFSETOF_MEMBER(mirror::DexCache, location_), "location"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_preresolved_strings_), "numPreResolvedStrings"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_resolved_call_sites_), "numResolvedCallSites"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_resolved_fields_), "numResolvedFields"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_resolved_method_types_), "numResolvedMethodTypes"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_resolved_methods_), "numResolvedMethods"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_resolved_types_), "numResolvedTypes"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, num_strings_), "numStrings"); - addOffset(OFFSETOF_MEMBER(mirror::DexCache, preresolved_strings_), "preResolvedStrings"); addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_call_sites_), "resolvedCallSites"); addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_fields_), "resolvedFields"); addOffset(OFFSETOF_MEMBER(mirror::DexCache, resolved_method_types_), "resolvedMethodTypes"); -- cgit v1.2.3-59-g8ed1b