summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-01-15 10:38:19 -0800
committerAndreas Gampe <agampe@google.com>2015-01-15 10:38:19 -0800
commit941c551acbc1fac40db89a723edc6b04d506d55c (patch)
tree5ad00dfd62ad7004fd74ca5ba10923e493500a29
parente81e1cd75b7dc6e44c5654e3ae329e86662ca02b (diff)
downloadart-941c551acbc1fac40db89a723edc6b04d506d55c.tar.gz
art-941c551acbc1fac40db89a723edc6b04d506d55c.tar.bz2
art-941c551acbc1fac40db89a723edc6b04d506d55c.zip
ART: Only run addr2line in abort thread dumps
Avoid addr2line overhead for SIGQUIT and other thread dumps. Bug: 18933933 Change-Id: I81bb291ede870d1d14b30bb0afdc47830ed14e8b
-rw-r--r--runtime/utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc
index d7d4ec207..908cfbd27 100644
--- a/runtime/utils.cc
+++ b/runtime/utils.cc
@@ -1208,7 +1208,7 @@ void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix,
if (kUseAddr2line) {
// Try to run it to see whether we have it. Push an argument so that it doesn't assume a.out
// and print to stderr.
- use_addr2line = RunCommand("addr2line -h", nullptr, nullptr);
+ use_addr2line = (gAborting > 0) && RunCommand("addr2line -h", nullptr, nullptr);
} else {
use_addr2line = false;
}