summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_switch_impl-inl.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-10-26 20:03:35 +0000
committer David Srbecky <dsrbecky@google.com> 2021-10-26 22:56:55 +0000
commitce131feb7c60ffdf28c315c5d67f9cac33a077ce (patch)
treec0d95161dc6ba2ed5cad0fc5cc4c131c3eed15d0 /runtime/interpreter/interpreter_switch_impl-inl.h
parent9c924e89e5f52da9faadd1e4e60c73eaed6bc9d1 (diff)
Revert "Change hotness counting."
This reverts commit c86869ab894c05e3181e7d15eb1893fa8a3fcd47. Reason for revert: App startup performance regression. Bug: 203810169 Change-Id: Ie816969fffd7740fcdfa330aeb645399f5351865
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl-inl.h')
-rw-r--r--runtime/interpreter/interpreter_switch_impl-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl-inl.h b/runtime/interpreter/interpreter_switch_impl-inl.h
index 86b796244e..8e16e04bfa 100644
--- a/runtime/interpreter/interpreter_switch_impl-inl.h
+++ b/runtime/interpreter/interpreter_switch_impl-inl.h
@@ -255,7 +255,7 @@ class InstructionHandler {
// Hotness update.
jit::Jit* jit = Runtime::Current()->GetJit();
if (jit != nullptr) {
- jit->AddSamples(Self(), shadow_frame_.GetMethod());
+ jit->AddSamples(Self(), shadow_frame_.GetMethod(), 1, /*with_backedges=*/ true);
}
// Record new dex pc early to have consistent suspend point at loop header.
shadow_frame_.SetDexPC(next_->GetDexPc(Insns()));