summaryrefslogtreecommitdiff
path: root/runtime/class_linker-inl.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2020-07-03 11:15:48 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2020-07-03 13:09:33 +0000
commiteaf3a920817fcf3b85d80eb16eb2fe91831e1fb9 (patch)
tree182d13f68b0d665eb3d13fc406ce20befe16c639 /runtime/class_linker-inl.h
parent58592c0e4d2a351a49bbf56fb48f9d1c9497b51e (diff)
Add some logging for diagnosing a crash.
Test: m Bug: 160292234 Change-Id: I578f7b64b4f78ff32d1a4e17ea0570d351ff4980
Diffstat (limited to 'runtime/class_linker-inl.h')
-rw-r--r--runtime/class_linker-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_linker-inl.h b/runtime/class_linker-inl.h
index 2732de56f7..15a787b110 100644
--- a/runtime/class_linker-inl.h
+++ b/runtime/class_linker-inl.h
@@ -279,7 +279,7 @@ inline bool ClassLinker::CheckInvokeClassMismatch(ObjPtr<mirror::DexCache> dex_c
const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx);
ObjPtr<mirror::Class> klass =
LookupResolvedType(method_id.class_idx_, dex_cache, class_loader);
- DCHECK(klass != nullptr);
+ DCHECK(klass != nullptr) << dex_cache->GetDexFile()->PrettyMethod(method_idx);
return klass;
});
}