summaryrefslogtreecommitdiffstats
path: root/runtime/utils.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-12-05 16:12:21 +0000
committerIan Rogers <irogers@google.com>2014-12-05 16:12:21 +0000
commitedfdaf37d5520a3c3a858b6b3fba4f759c60dadc (patch)
tree4b08c00ba9bc427771413a758c669df56dbba62d /runtime/utils.cc
parente652b62c581a3d68b1fc82e0b04e3a59dd633e52 (diff)
downloadart-edfdaf37d5520a3c3a858b6b3fba4f759c60dadc.tar.gz
art-edfdaf37d5520a3c3a858b6b3fba4f759c60dadc.tar.bz2
art-edfdaf37d5520a3c3a858b6b3fba4f759c60dadc.zip
Revert "Re-enable one thread dumping the native stack of another."
This reverts commit e652b62c581a3d68b1fc82e0b04e3a59dd633e52. Change-Id: Ida56d2c23849c1ede82a22100df402877256e270
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r--runtime/utils.cc8
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";