commit | 3caa05d71d590dab1436c20424b4d4ac4f0cde34 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Tue Jun 30 11:09:44 2020 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Tue Jun 30 16:20:19 2020 +0000 |
tree | 972f0bfb3890f0edc5b4882cef4f6f3b724f3028 | |
parent | fa88d5228d0cafda62d94d989542801f19ac8573 [diff] |
Reduce the hotness on lookups. The Contacts app regressed in app startup and CpuCycles with a value of 0xff, so reduce it down to 0xf. https://blackbox.googleplex.com/dashboard/art-perf/target/git_master/blueline-userdebug/6/AppLaunch%2523Contactsfirst-boot-dropcache-cyclic-compile-lock/15?pagination=true Test: test.py Test: google/perf/app-transition/app-transition-to-recents Test: Contacts doesn't regress in CpuCycles and app startup for "verify" and "quicken" Bug: 112676029 Bug: 157402634 Change-Id: Ieb6f3307d87a896968a2aea76ce0f75ff5b66686
diff --git a/runtime/interpreter/mterp/nterp.cc b/runtime/interpreter/mterp/nterp.cc index fef944f..1d47f29 100644 --- a/runtime/interpreter/mterp/nterp.cc +++ b/runtime/interpreter/mterp/nterp.cc
@@ -74,7 +74,7 @@ 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; + constexpr uint16_t kNterpHotnessLookup = 0xf; // Convert to uint32_t to handle uint16_t overflow. uint32_t counter = method->GetCounter();