Test: make test-art-host
Bug:
30550796
Change-Id: Ic689e4c9bee691f03703288c3b12634a26841140
// This is the MethodType corresponding to the prototype of
// String MethodTypes# method1(String).
// Its RType = Ljava/lang/String;
- // Its PTypes = { Ljava/langString; }
+ // Its PTypes = { Ljava/lang/String; }
Handle<mirror::MethodType> method1_type = hs.NewHandle(
class_linker_->ResolveMethodType(dex_file, method1_id.proto_idx_, dex_cache, class_loader));
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);