diff options
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 7359056d32..52caa9f1cf 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -4163,9 +4163,13 @@ void ClassLinker::LoadMethod(const DexFile& dex_file, } } - if (Runtime::Current()->IsZygote() && + if ((access_flags & kAccAbstract) == 0u && + Runtime::Current()->IsZygote() && !Runtime::Current()->GetJITOptions()->GetProfileSaverOptions().GetProfileBootClassPath()) { + DCHECK(!ArtMethod::IsAbstract(access_flags)); + DCHECK(!ArtMethod::IsIntrinsic(access_flags)); dst->SetMemorySharedMethod(); + dst->SetHotCounter(); } } |