summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/oat_file_manager.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/runtime/oat_file_manager.cc b/runtime/oat_file_manager.cc
index e9c0dddb2f..635122038a 100644
--- a/runtime/oat_file_manager.cc
+++ b/runtime/oat_file_manager.cc
@@ -711,7 +711,7 @@ class BackgroundVerificationTask final : public Task {
h_loader)));
if (h_class == nullptr) {
- CHECK(self->IsExceptionPending());
+ DCHECK(self->IsExceptionPending());
self->ClearException();
continue;
}
@@ -722,15 +722,14 @@ class BackgroundVerificationTask final : public Task {
continue;
}
- CHECK(h_class->IsResolved()) << h_class->PrettyDescriptor();
+ DCHECK(h_class->IsResolved()) << h_class->PrettyDescriptor();
class_linker->VerifyClass(self, &verifier_deps, h_class);
- if (h_class->IsErroneous()) {
- // ClassLinker::VerifyClass throws, which isn't useful here.
- CHECK(soa.Self()->IsExceptionPending());
- soa.Self()->ClearException();
+ if (self->IsExceptionPending()) {
+ // ClassLinker::VerifyClass can throw, but the exception isn't useful here.
+ self->ClearException();
}
- CHECK(h_class->IsVerified() || h_class->IsErroneous())
+ DCHECK(h_class->IsVerified() || h_class->IsErroneous())
<< h_class->PrettyDescriptor() << ": state=" << h_class->GetStatus();
if (h_class->IsVerified()) {