diff options
author | David Sehr <sehr@google.com> | 2020-03-10 15:26:55 -0700 |
---|---|---|
committer | David Sehr <sehr@google.com> | 2020-03-20 09:48:11 -0700 |
commit | 873bb64b8815b3f6a350ce109eb54ec770369d22 (patch) | |
tree | 2059840d3930dc5bd19536150fb3ac3c15654fbc /compiler/driver/compiler_options.h | |
parent | 6e44830b65de39f5d20342109f7cbc47e4624fe0 (diff) |
Add "linkage" test options
Add options to control "linkage" model. This involves checking for
redefinitions and subclassing classloaders.
Bug: none
Test: 1964-redefinition
Change-Id: I0cb3c725b7d62f7c6c0958dc6d5f9b55d6258fd5
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 79ba1c27c9..639c5475e8 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -311,6 +311,14 @@ class CompilerOptions final { return force_determinism_; } + bool IsCheckLinkageConditions() const { + return check_linkage_conditions_; + } + + bool IsCrashOnLinkageViolation() const { + return crash_on_linkage_violation_; + } + bool DeduplicateCode() const { return deduplicate_code_; } @@ -431,6 +439,13 @@ class CompilerOptions final { // outcomes. bool force_determinism_; + // Whether the compiler should check for violation of the conditions required to perform AOT + // "linkage". + bool check_linkage_conditions_; + // Whether the compiler should crash when encountering a violation of one of + // the conditions required to perform AOT "linkage". + bool crash_on_linkage_violation_; + // Whether code should be deduplicated. bool deduplicate_code_; |