OSDN Git Service

Revert "Revert "Skip DumpForSigQuit if debugger is active""
authorMathieu Chartier <mathieuc@google.com>
Fri, 17 Jun 2016 18:39:15 +0000 (11:39 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 17 Jun 2016 18:39:33 +0000 (11:39 -0700)
Bug: 26118154

This reverts commit 539f7fb0964a184b24bf40c729577be76dd7749a.

runtime/runtime.cc

index bb91602..caf5545 100644 (file)
@@ -1379,6 +1379,11 @@ void Runtime::RegisterRuntimeNativeMethods(JNIEnv* env) {
 }
 
 void Runtime::DumpForSigQuit(std::ostream& os) {
+  // Dumping for SIGQIT may cause deadlocks if the the debugger is active. b/26118154
+  if (Dbg::IsDebuggerActive()) {
+    LOG(INFO) << "Skipping DumpForSigQuit due to active debugger";
+    return;
+  }
   GetClassLinker()->DumpForSigQuit(os);
   GetInternTable()->DumpForSigQuit(os);
   GetJavaVM()->DumpForSigQuit(os);