Add bool to verifier to allow soft failures.
When false, soft failures in the verifier become hard failures. It should
only be false when not compiling, and calling the verifier from the class
linker.
Change-Id: I664e5cbe491784b280aa5bfdb7e7fc0b771814f5
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 7dcd511..cee1881 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -2233,7 +2233,7 @@
}
std::string error_msg;
if (!preverified) {
- verifier_failure = verifier::MethodVerifier::VerifyClass(klass, error_msg);
+ verifier_failure = verifier::MethodVerifier::VerifyClass(klass, error_msg, Runtime::Current()->IsCompiler());
}
if (preverified || verifier_failure != verifier::MethodVerifier::kHardFailure) {
if (!preverified && verifier_failure != verifier::MethodVerifier::kNoFailure) {