summaryrefslogtreecommitdiffstats
path: root/compiler/driver/compiler_driver.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-05 13:08:45 -0800
committerAndreas Gampe <agampe@google.com>2015-03-05 18:42:21 -0800
commit6cf49e57ad7a61e1fffd5b1dfae9179c3ca5703d (patch)
tree126d4a09078ebfb6b5eed5d67d6300217132a1bb /compiler/driver/compiler_driver.h
parent66b26662ad0c52c648c9b5ea4a99149091e842b4 (diff)
downloadart-6cf49e57ad7a61e1fffd5b1dfae9179c3ca5703d.zip
art-6cf49e57ad7a61e1fffd5b1dfae9179c3ca5703d.tar.gz
art-6cf49e57ad7a61e1fffd5b1dfae9179c3ca5703d.tar.bz2
ART: Add option to abort dex2oat on hard failure
Add an option that aborts dex2oat when a hard verifier failure occurs. Bug: 19606409 Change-Id: I53195284e22fe6207274101e85745af763c06271
Diffstat (limited to 'compiler/driver/compiler_driver.h')
-rw-r--r--compiler/driver/compiler_driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h
index 24b6f17..f949667 100644
--- a/compiler/driver/compiler_driver.h
+++ b/compiler/driver/compiler_driver.h
@@ -437,6 +437,10 @@ class CompilerDriver {
// Get memory usage during compilation.
std::string GetMemoryUsageString(bool extended) const;
+ void SetHadHardVerifierFailure() {
+ had_hard_verifier_failure_ = true;
+ }
+
private:
// These flags are internal to CompilerDriver for collecting INVOKE resolution statistics.
// The only external contract is that unresolved method has flags 0 and resolved non-0.
@@ -575,6 +579,8 @@ class CompilerDriver {
// included in the image.
std::unique_ptr<std::set<std::string>> classes_to_compile_;
+ bool had_hard_verifier_failure_;
+
size_t thread_count_;
class AOTCompilationStats;