diff options
author | 2018-03-30 16:54:27 +0000 | |
---|---|---|
committer | 2018-03-30 16:54:27 +0000 | |
commit | 75b47b47c4c54adccbb723cfbf48e32953887713 (patch) | |
tree | 876ce211773db3e3785254ae8d7e6b66545c76be /runtime/runtime_common.cc | |
parent | 0b1d3ca323bd504818e4cdab1baa732964ee150a (diff) | |
parent | 6ee497188b0e8c7bcf5126cefad04090f956616a (diff) |
Merge "Revert^4 "Add an option to disable native stack dumping on SIGQUIT.""
Diffstat (limited to 'runtime/runtime_common.cc')
-rw-r--r-- | runtime/runtime_common.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/runtime_common.cc b/runtime/runtime_common.cc index 41bfb58d93..59af9187f9 100644 --- a/runtime/runtime_common.cc +++ b/runtime/runtime_common.cc @@ -41,6 +41,7 @@ namespace art { using android::base::StringPrintf; static constexpr bool kUseSigRTTimeout = true; +static constexpr bool kDumpNativeStackOnTimeout = true; const char* GetSignalName(int signal_number) { switch (signal_number) { @@ -440,7 +441,7 @@ void HandleUnexpectedSignalCommon(int signal_number, // Special timeout signal. Try to dump all threads. // Note: Do not use DumpForSigQuit, as that might disable native unwind, but the native parts // are of value here. - runtime->GetThreadList()->Dump(std::cerr); + runtime->GetThreadList()->Dump(std::cerr, kDumpNativeStackOnTimeout); std::cerr << std::endl; } |