summaryrefslogtreecommitdiffstats
path: root/runtime/thread_list.cc
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2014-09-18 10:20:42 +0200
committerSebastien Hertz <shertz@google.com>2014-09-18 11:49:59 +0200
commitf272af4b9dcd39cdd50fa6655601a26e837eaea9 (patch)
tree31e57bb86fadf00aeb05de3f4211320d7a281bf4 /runtime/thread_list.cc
parentd41491adb23764f28a80cbb7f2bd7af6491cd892 (diff)
downloadart-f272af4b9dcd39cdd50fa6655601a26e837eaea9.zip
art-f272af4b9dcd39cdd50fa6655601a26e837eaea9.tar.gz
art-f272af4b9dcd39cdd50fa6655601a26e837eaea9.tar.bz2
Move spammy logs to JDWP verbose mode
We are spammed by warning messages when debugging, especially each time we suspend/resume all threads (to update instrumentation or collect monitor info). It's common to get into the cases where these warnings are logged so they shouldn't be warning but debug messages. This CL moves these LOG(WARNING) to VLOG(jdwp) to not disturb developers when debugging their app (especially when looking for specific messages in logcat). We keep them in JDWP verbose mode because they help knowing when we initiate these sequences of "suspend/resume all threads". Also adds debug suspend count in the log message for more context. Bug: 17524544 Bug: 17170697 Change-Id: Ic87985ac6913151d15fd89849e41bde61092c3dd
Diffstat (limited to 'runtime/thread_list.cc')
-rw-r--r--runtime/thread_list.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc
index 08e66ea..ec5b775 100644
--- a/runtime/thread_list.cc
+++ b/runtime/thread_list.cc
@@ -728,11 +728,14 @@ void ThreadList::SuspendSelfForDebugger() {
Thread::resume_cond_->Wait(self);
if (self->GetSuspendCount() != 0) {
// The condition was signaled but we're still suspended. This
- // can happen if the debugger lets go while a SIGQUIT thread
+ // can happen when we suspend then resume all threads to
+ // update instrumentation or compute monitor info. This can
+ // also happen if the debugger lets go while a SIGQUIT thread
// dump event is pending (assuming SignalCatcher was resumed for
// just long enough to try to grab the thread-suspend lock).
- LOG(WARNING) << *self << " still suspended after undo "
- << "(suspend count=" << self->GetSuspendCount() << ")";
+ VLOG(jdwp) << *self << " still suspended after undo "
+ << "(suspend count=" << self->GetSuspendCount() << ", "
+ << "debug suspend count=" << self->GetDebugSuspendCount() << ")";
}
}
CHECK_EQ(self->GetSuspendCount(), 0);