diff options
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index d2eb3bdf63..9a6c8a5c3c 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -3147,19 +3147,15 @@ class UpdateEntryPointsClassVisitor : public ClassVisitor { auto pointer_size = Runtime::Current()->GetClassLinker()->GetImagePointerSize(); for (auto& m : klass->GetMethods(pointer_size)) { const void* code = m.GetEntryPointFromQuickCompiledCode(); - // For java debuggable runtimes we also deoptimize native methods. For other cases (boot - // image profiling) we don't need to deoptimize native methods. If this changes also - // update Instrumentation::CanUseAotCode. - bool deoptimize_native_methods = Runtime::Current()->IsJavaDebuggable(); if (Runtime::Current()->GetHeap()->IsInBootImageOatFile(code) && - (!m.IsNative() || deoptimize_native_methods) && + !m.IsNative() && !m.IsProxyMethod()) { instrumentation_->InitializeMethodsCode(&m, /*aot_code=*/ nullptr); } if (Runtime::Current()->GetJit() != nullptr && Runtime::Current()->GetJit()->GetCodeCache()->IsInZygoteExecSpace(code) && - (!m.IsNative() || deoptimize_native_methods)) { + !m.IsNative()) { DCHECK(!m.IsProxyMethod()); instrumentation_->InitializeMethodsCode(&m, /*aot_code=*/ nullptr); } |