summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/interpreter/mterp/nterp.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/interpreter/mterp/nterp.cc b/runtime/interpreter/mterp/nterp.cc
index b929444fc6..827df1b971 100644
--- a/runtime/interpreter/mterp/nterp.cc
+++ b/runtime/interpreter/mterp/nterp.cc
@@ -119,7 +119,11 @@ void CheckNterpAsmConstants() {
inline void UpdateHotness(ArtMethod* method) REQUIRES_SHARED(Locks::mutator_lock_) {
// The hotness we will add to a method when we perform a
// field/method/class/string lookup.
- method->UpdateCounter(0xf);
+ Runtime* runtime = Runtime::Current();
+ bool increase_hotness_for_ui = runtime->GetStartupCompleted() &&
+ runtime->InJankPerceptibleProcessState() &&
+ Thread::Current()->IsJitSensitiveThread();
+ method->UpdateCounter(increase_hotness_for_ui ? 0x6ff : 0xf);
}
template<typename T>