Revert "Re-enable one thread dumping the native stack of another."
This reverts commit e652b62c581a3d68b1fc82e0b04e3a59dd633e52.
Change-Id: Ida56d2c23849c1ede82a22100df402877256e270
diff --git a/runtime/utils.cc b/runtime/utils.cc
index d9782f3..1211547 100644
--- a/runtime/utils.cc
+++ b/runtime/utils.cc
@@ -1125,6 +1125,14 @@
return;
}
+#if !defined(HAVE_ANDROID_OS)
+ if (GetTid() != tid) {
+ // TODO: dumping of other threads is disabled to avoid crashes during stress testing.
+ // b/15446488.
+ return;
+ }
+#endif
+
std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid));
if (!backtrace->Unwind(0)) {
os << prefix << "(backtrace::Unwind failed for thread " << tid << ")\n";