diff options
-rw-r--r-- | runtime/utils.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc index d9782f3fe..1211547a5 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -1125,6 +1125,14 @@ void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix, 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"; |