From 646d6388758db566eb1302baf274e538e5bdb8b9 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 9 Aug 2017 10:50:00 +0100 Subject: Move deopt and jit logs from LOG(INFO) to VLOG(jit). They served their purposes. Now stop spamming logcat. Test: test.py Change-Id: I53c961a6ad95ea891f2f09b7e11e7535da4fdaff --- runtime/quick_exception_handler.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'runtime/quick_exception_handler.cc') 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()); -- cgit v1.2.3-59-g8ed1b