diff options
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 3b0ca9e28a..c5aece56be 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -185,7 +185,7 @@ Runtime::Runtime() system_class_loader_(nullptr), dump_gc_performance_on_shutdown_(false), preinitialization_transaction_(nullptr), - verify_(false), + verify_(verifier::VerifyMode::kNone), allow_dex_file_fallback_(true), target_sdk_version_(0), implicit_null_checks_(false), @@ -1757,4 +1757,12 @@ void Runtime::SetImtUnimplementedMethod(ArtMethod* method) { imt_unimplemented_method_ = method; } +bool Runtime::IsVerificationEnabled() const { + return verify_ == verifier::VerifyMode::kEnable; +} + +bool Runtime::IsVerificationSoftFail() const { + return verify_ == verifier::VerifyMode::kSoftFail; +} + } // namespace art |