Address review comments for change 25352fc06c84cdab8a2ab.
Test: make test-art-host
Bug: 30550796
Change-Id: Ic689e4c9bee691f03703288c3b12634a26841140
diff --git a/runtime/mirror/dex_cache-inl.h b/runtime/mirror/dex_cache-inl.h
index 41692da..0fa6d6b 100644
--- a/runtime/mirror/dex_cache-inl.h
+++ b/runtime/mirror/dex_cache-inl.h
@@ -92,7 +92,7 @@
inline void DexCache::SetResolvedMethodType(uint32_t proto_idx, MethodType* resolved) {
DCHECK(Runtime::Current()->IsMethodHandlesEnabled());
- DCHECK_LT(proto_idx, NumResolvedMethodTypes()); // NOTE: Unchecked, i.e. not throwing AIOOB.
+ DCHECK_LT(proto_idx, GetDexFile()->NumProtoIds());
GetResolvedMethodTypes()[proto_idx % NumResolvedMethodTypes()].store(
MethodTypeDexCachePair(resolved, proto_idx), std::memory_order_relaxed);