From 941c551acbc1fac40db89a723edc6b04d506d55c Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 15 Jan 2015 10:38:19 -0800 Subject: ART: Only run addr2line in abort thread dumps Avoid addr2line overhead for SIGQUIT and other thread dumps. Bug: 18933933 Change-Id: I81bb291ede870d1d14b30bb0afdc47830ed14e8b --- runtime/utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/utils.cc') 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; } -- cgit v1.2.3