Revert "Revert "Skip DumpForSigQuit if debugger is active""
Bug: 26118154
This reverts commit 539f7fb0964a184b24bf40c729577be76dd7749a.
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index bb91602..caf5545 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1379,6 +1379,11 @@
}
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);