summaryrefslogtreecommitdiff
path: root/runtime/interpreter/mterp/nterp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/interpreter/mterp/nterp.cc')
-rw-r--r--runtime/interpreter/mterp/nterp.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/interpreter/mterp/nterp.cc b/runtime/interpreter/mterp/nterp.cc
index bcc59a4032..d8ce2bcaed 100644
--- a/runtime/interpreter/mterp/nterp.cc
+++ b/runtime/interpreter/mterp/nterp.cc
@@ -118,8 +118,9 @@ 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.
- constexpr uint16_t kNterpHotnessLookup = 0xff;
- method->UpdateCounter(kNterpHotnessLookup);
+ bool increase_hotness_for_ui = Runtime::Current()->InJankPerceptibleProcessState() &&
+ Thread::Current()->IsJitSensitiveThread();
+ method->UpdateCounter(increase_hotness_for_ui ? 0x6ff : 0xf);
}
template<typename T>