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
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc
index db10103..b592247 100644
--- a/runtime/quick_exception_handler.cc
+++ b/runtime/quick_exception_handler.cc
@@ -533,21 +533,19 @@
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());