diff options
Diffstat (limited to 'runtime/native/dalvik_system_VMRuntime.cc')
-rw-r--r-- | runtime/native/dalvik_system_VMRuntime.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_VMRuntime.cc b/runtime/native/dalvik_system_VMRuntime.cc index 9b707f8e1c..d81c13df11 100644 --- a/runtime/native/dalvik_system_VMRuntime.cc +++ b/runtime/native/dalvik_system_VMRuntime.cc @@ -444,6 +444,7 @@ static void PreloadDexCachesStatsFilled(DexCacheStats* filled) if (!kPreloadDexCachesCollectStats) { return; } + // TODO: Update for hash-based DexCache arrays. ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); Thread* const self = Thread::Current(); for (const DexFile* dex_file : class_linker->GetBootClassPath()) { @@ -463,7 +464,7 @@ static void PreloadDexCachesStatsFilled(DexCacheStats* filled) } } for (size_t j = 0; j < dex_cache->NumResolvedFields(); j++) { - ArtField* field = class_linker->GetResolvedField(j, dex_cache); + ArtField* field = dex_cache->GetResolvedField(j, class_linker->GetImagePointerSize()); if (field != nullptr) { filled->num_fields++; } |