diff options
author | 2017-06-01 20:14:58 -0700 | |
---|---|---|
committer | 2017-06-01 20:14:58 -0700 | |
commit | c6fe427cccc166ece2d57bc45e91a8f5aad0661b (patch) | |
tree | 73b4cd6a069f494fea1d3f9f40a3bac6290e1e87 /runtime/runtime_android.cc | |
parent | 596c58b3dc73a4017d49af6c5037bbd7109fd31e (diff) |
ART: Refactor HandleUnexpectedSignalCommon
Avoid the std::ostringstream. Instead use a lambda and immediately
use std::cerr when asked to dump there, eventually.
Also refactor the signature to make it more explicit what the function
will handle and where it would dump to.
Test: m test-art-host
Change-Id: I2be5497d4f9957127243879113372d9aa1535d82
Diffstat (limited to 'runtime/runtime_android.cc')
-rw-r--r-- | runtime/runtime_android.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/runtime_android.cc b/runtime/runtime_android.cc index 495296cf7d..4bd3b3ae3a 100644 --- a/runtime/runtime_android.cc +++ b/runtime/runtime_android.cc @@ -27,7 +27,11 @@ namespace art { struct sigaction old_action; void HandleUnexpectedSignalAndroid(int signal_number, siginfo_t* info, void* raw_context) { - HandleUnexpectedSignalCommon(signal_number, info, raw_context, /* running_on_linux */ false); + HandleUnexpectedSignalCommon(signal_number, + info, + raw_context, + /* handle_timeout_signal */ false, + /* dump_on_stderr */ false); // Run the old signal handler. old_action.sa_sigaction(signal_number, info, raw_context); |