Make explicit which methods retrieve info about *hot* methods
Rename some methods to better highlight that they refer to hot methods and not
to any method (e.g. a non-hot, startup methods).
Bug: 139884006
Test: m test-art-host
Change-Id: Ieb3a36c434104d1cde28ca18a5b335cc8a24e537
diff --git a/runtime/jit/profiling_info_test.cc b/runtime/jit/profiling_info_test.cc
index 6b82411..319a3e1 100644
--- a/runtime/jit/profiling_info_test.cc
+++ b/runtime/jit/profiling_info_test.cc
@@ -282,14 +282,13 @@
{
ScopedObjectAccess soa(self);
for (ArtMethod* m : main_methods) {
- Hotness h = info.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex()));
+ MethodReference method_ref(m->GetDexFile(), m->GetDexMethodIndex());
+ Hotness h = info.GetMethodHotness(method_ref);
ASSERT_TRUE(h.IsHot());
ASSERT_TRUE(h.IsStartup());
const ProfileMethodInfo& pmi = profile_methods_map.find(m)->second;
std::unique_ptr<ProfileCompilationInfo::OfflineProfileMethodInfo> offline_pmi =
- info.GetMethod(m->GetDexFile()->GetLocation(),
- m->GetDexFile()->GetLocationChecksum(),
- m->GetDexMethodIndex());
+ info.GetHotMethodInfo(method_ref);
ASSERT_TRUE(offline_pmi != nullptr);
ProfileCompilationInfo::OfflineProfileMethodInfo converted_pmi =
ConvertProfileMethodInfo(pmi);