summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2023-08-30 10:02:47 +0000
committer Mythri Alle <mythria@google.com> 2023-08-30 11:29:46 +0000
commit834fb38bc0fb16d7d79bc877fced920065bbff82 (patch)
tree9b3283f8bb53f9f1e9fbd7e84b3f19f57352f36f /runtime/class_linker.cc
parent931ebb25cf5a07cf39d238db91831b5eff65a500 (diff)
Revert "Don't use shared hotness counters for debuggable runtimes"
This reverts commit 8f13c9d50fdc8bc03d0091eefd19dda7d2234fcc. Reason for revert: Breaks CtsSimpleperfTestCases record_cmd#check_trampoline_after_art_jni_methods b/296416302 Bug: 296416302 Change-Id: I9079788e289407fdd1b417874a0abe4d2c5e1c9a
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index fb1b4651ce..a476ed67cc 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -2236,14 +2236,11 @@ bool ClassLinker::AddImageSpace(gc::space::ImageSpace* space,
// If we are profiling the boot classpath, we disable the shared memory
// optimization to make sure boot classpath methods all get properly
// profiled.
- // For debuggable runtimes we don't use AOT code, so don't use shared memory
- // optimization so the methods can be JITed better.
//
// We need to disable the flag before doing ResetCounter below, as counters
// of shared memory method always hold the "hot" value.
if (!runtime->IsZygote() ||
- runtime->GetJITOptions()->GetProfileSaverOptions().GetProfileBootClassPath() ||
- runtime->IsJavaDebuggable()) {
+ runtime->GetJITOptions()->GetProfileSaverOptions().GetProfileBootClassPath()) {
header.VisitPackedArtMethods([&](ArtMethod& method) REQUIRES_SHARED(Locks::mutator_lock_) {
method.ClearMemorySharedMethod();
}, space->Begin(), image_pointer_size_);