summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2017-07-27 12:12:22 -0700
committerAndreas Gampe <agampe@google.com>2017-07-27 12:15:44 -0700
commitfdfb4d4c20620d8ef725bcba5c8bdaba9849b6f7 (patch)
tree58dc47a73abd8f9e34f3a85446df1faaad52e89a /compiler/driver/compiler_options.cc
parent65e514a0ba9eb6d159cee25d0a731d1e4e00a3c9 (diff)
ART: Modify --abort-on-hard-verifier-error
Add --no-abort-on-hard-verifier-error to turn off the behavior. Use FATAL_WITHOUT_ABORT and abort() instead of LOG(FATAL) to avoid multiple printouts of stacks. Just shutting down thread pools still leads to three redundant stack dumps. Bug: 36902714 Test: m Change-Id: I35fef23fb36567b0d1deb7f16c2a2b43c3af47e8
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r--compiler/driver/compiler_options.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc
index 76f0ae9202..3cacc2cad7 100644
--- a/compiler/driver/compiler_options.cc
+++ b/compiler/driver/compiler_options.cc
@@ -144,6 +144,8 @@ bool CompilerOptions::ParseCompilerOption(const StringPiece& option, UsageFn Usa
ParseDouble(option.data(), '=', 0.0, 100.0, &top_k_profile_threshold_, Usage);
} else if (option == "--abort-on-hard-verifier-error") {
abort_on_hard_verifier_failure_ = true;
+ } else if (option == "--no-abort-on-hard-verifier-error") {
+ abort_on_hard_verifier_failure_ = false;
} else if (option.starts_with("--dump-init-failures=")) {
ParseDumpInitFailures(option, Usage);
} else if (option.starts_with("--dump-cfg=")) {