summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
-rw-r--r--runtime/jit/jit_code_cache.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index 3aaca9acff..697ea94a85 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -616,15 +616,15 @@ void JitCodeCache::CopyInlineCacheInto(
const InlineCache& ic,
/*out*/StackHandleScope<InlineCache::kIndividualCacheSize>* classes) {
static_assert(arraysize(ic.classes_) == InlineCache::kIndividualCacheSize);
- DCHECK_EQ(classes->NumberOfReferences(), InlineCache::kIndividualCacheSize);
- DCHECK_EQ(classes->RemainingSlots(), InlineCache::kIndividualCacheSize);
+ DCHECK_EQ(classes->Capacity(), InlineCache::kIndividualCacheSize);
+ DCHECK_EQ(classes->Size(), 0u);
WaitUntilInlineCacheAccessible(Thread::Current());
// Note that we don't need to lock `lock_` here, the compiler calling
// this method has already ensured the inline cache will not be deleted.
for (const GcRoot<mirror::Class>& root : ic.classes_) {
mirror::Class* object = root.Read();
if (object != nullptr) {
- DCHECK_NE(classes->RemainingSlots(), 0u);
+ DCHECK_LT(classes->Size(), classes->Capacity());
classes->NewHandle(object);
}
}