OSDN Git Service

ART: More verifier error output
authorAndreas Gampe <agampe@google.com>
Tue, 16 Sep 2014 02:02:30 +0000 (19:02 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 29 Sep 2014 16:13:51 +0000 (09:13 -0700)
Add some debug output on verifier abort.

Change-Id: I4a84ff1d8e1bad689addca287a989639e7111b97

runtime/verifier/method_verifier.cc

index 4673906..0a32308 100644 (file)
@@ -3349,7 +3349,8 @@ mirror::ArtMethod* MethodVerifier::GetQuickInvokedMethod(const Instruction* inst
   CHECK(dispatch_class->HasVTable()) << PrettyDescriptor(dispatch_class);
   uint16_t vtable_index = is_range ? inst->VRegB_3rc() : inst->VRegB_35c();
   CHECK_LT(static_cast<int32_t>(vtable_index), dispatch_class->GetVTableLength())
-      << PrettyDescriptor(klass);
+      << PrettyDescriptor(klass) << " in method "
+      << PrettyMethod(dex_method_idx_, *dex_file_, true);
   mirror::ArtMethod* res_method = dispatch_class->GetVTableEntry(vtable_index);
   CHECK(!self_->IsExceptionPending());
   return res_method;