Lower a LOG(WARNING) to VLOG(deopt) in instrumentation
During late-attach of a debugger it is fairly common for there to be
non-debuggable frames present. Change the instrumentation code to not
print a warning for all of them unless we have -verbose:deopt.
Test: None
Change-Id: I6f995f4d0eb5164e205a0eac209b4ff1e073d017
diff --git a/runtime/instrumentation.cc b/runtime/instrumentation.cc
index 2101f68..24cedb0 100644
--- a/runtime/instrumentation.cc
+++ b/runtime/instrumentation.cc
@@ -1384,8 +1384,8 @@
reinterpret_cast<uintptr_t>(GetQuickDeoptimizationEntryPoint()));
} else {
if (deoptimize && !Runtime::Current()->IsAsyncDeoptimizeable(*return_pc)) {
- LOG(WARNING) << "Got a deoptimization request on un-deoptimizable " << method->PrettyMethod()
- << " at PC " << reinterpret_cast<void*>(*return_pc);
+ VLOG(deopt) << "Got a deoptimization request on un-deoptimizable " << method->PrettyMethod()
+ << " at PC " << reinterpret_cast<void*>(*return_pc);
}
if (kVerboseInstrumentation) {
LOG(INFO) << "Returning from " << method->PrettyMethod()