diff options
author | 2023-09-13 08:33:12 +0000 | |
---|---|---|
committer | 2023-09-13 10:16:58 +0000 | |
commit | fe1fcbf66c7ab2b10676647e2971ea91541cd5f3 (patch) | |
tree | fe1b7dab5e91ce12a1f4ff114a9812f3a72e438d /runtime/class_linker.cc | |
parent | bb8d6f6cc7a66c2c03bb73d3e384dd13a4ad28e5 (diff) |
Revert "Reland "Don't use shared hotness counters for debuggable runtimes"""
This reverts commit b63b4a28ed2cdbfae75fb5e550313ce3ccec1eae.
Reason for revert: Failures on CtsSimpleperfTestCases.record_cmd#check_trampoline_after_art_jni_methods b/300064491
Change-Id: Ia666ae211b1f2cf4548bb5844ec22c3f878c8cab
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 953cc676dc..1edb694a1d 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_); |