diff options
Diffstat (limited to 'runtime/quick_exception_handler.cc')
-rw-r--r-- | runtime/quick_exception_handler.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index db10103c4b..b592247da3 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -533,21 +533,19 @@ void QuickExceptionHandler::DeoptimizeStack() { void QuickExceptionHandler::DeoptimizeSingleFrame(DeoptimizationKind kind) { DCHECK(is_deoptimization_); - if (VLOG_IS_ON(deopt) || kDebugExceptionDelivery) { - LOG(INFO) << "Single-frame deopting:"; - DumpFramesWithType(self_, true); - } - DeoptimizeStackVisitor visitor(self_, context_, this, true); visitor.WalkStack(true); // Compiled code made an explicit deoptimization. ArtMethod* deopt_method = visitor.GetSingleFrameDeoptMethod(); DCHECK(deopt_method != nullptr); - LOG(INFO) << "Deoptimizing " - << deopt_method->PrettyMethod() - << " due to " - << GetDeoptimizationKindName(kind); + if (VLOG_IS_ON(deopt) || kDebugExceptionDelivery) { + LOG(INFO) << "Single-frame deopting: " + << deopt_method->PrettyMethod() + << " due to " + << GetDeoptimizationKindName(kind); + DumpFramesWithType(self_, /* details */ true); + } if (Runtime::Current()->UseJitCompilation()) { Runtime::Current()->GetJit()->GetCodeCache()->InvalidateCompiledCodeFor( deopt_method, visitor.GetSingleFrameDeoptQuickMethodHeader()); |