From e86deeffad79c00ed2ebede04f4adc348bda790c Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 19 Mar 2015 13:43:37 -0700 Subject: Add verify-at-runtime compiler filter Verifies at runtime only, instead of at compilation time. AOSP HH boot time after clean-oat: ~30s instead of ~35s if enabled. Also helps install time if enabled there. TODO: See if there is any possible deadlocks that can result from this. Bug: 19762303 Change-Id: Ibfba77148da9039e8d7d7497c05486bc044eefe7 --- runtime/verifier/method_verifier.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/verifier') diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc index c67a58a..3b98e47 100644 --- a/runtime/verifier/method_verifier.cc +++ b/runtime/verifier/method_verifier.cc @@ -2748,7 +2748,8 @@ bool MethodVerifier::CodeFlowVerifyInstruction(uint32_t* start_guess) { auto* klass = declaring_class.GetClass(); for (uint32_t i = 0, num_fields = klass->NumInstanceFields(); i < num_fields; ++i) { if (klass->GetInstanceField(i)->IsFinal()) { - Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "return-void-no-barrier not expected"; + Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "return-void-no-barrier not expected for " + << PrettyField(klass->GetInstanceField(i)); break; } } -- cgit v1.1