From f39208f6787928151153795a3cdae28cba964df6 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 19 Oct 2017 15:06:59 -0700 Subject: ART: Add abort-on-soft-verifier-error Add an option to abort compilation if any class fails compile-time verification. Bug: 65318848 Bug: 67358823 Test: m test-art-host-gtest-dex2oat_test Change-Id: I5d2a7cd1d2ed048ab39d6f787ecc9eb2f41d3d77 --- compiler/driver/compiler_options.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 311dbd569e..12de9be60b 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -226,6 +226,9 @@ class CompilerOptions FINAL { bool AbortOnHardVerifierFailure() const { return abort_on_hard_verifier_failure_; } + bool AbortOnSoftVerifierFailure() const { + return abort_on_soft_verifier_failure_; + } const std::vector* GetNoInlineFromDexFile() const { return no_inline_from_; @@ -303,6 +306,8 @@ class CompilerOptions FINAL { // Abort compilation with an error if we find a class that fails verification with a hard // failure. bool abort_on_hard_verifier_failure_; + // Same for soft failures. + bool abort_on_soft_verifier_failure_; // Log initialization of initialization failures to this stream if not null. std::unique_ptr init_failure_output_; -- cgit v1.2.3-59-g8ed1b