diff options
Diffstat (limited to 'runtime/indirect_reference_table.cc')
-rw-r--r-- | runtime/indirect_reference_table.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/indirect_reference_table.cc b/runtime/indirect_reference_table.cc index b81e43a..432481b 100644 --- a/runtime/indirect_reference_table.cc +++ b/runtime/indirect_reference_table.cc @@ -66,7 +66,7 @@ IndirectReferenceTable::IndirectReferenceTable(size_t initialCount, size_t maxCount, IndirectRefKind desiredKind) { CHECK_GT(initialCount, 0U); CHECK_LE(initialCount, maxCount); - CHECK_NE(desiredKind, kSirtOrInvalid); + CHECK_NE(desiredKind, kHandleScopeOrInvalid); std::string error_str; const size_t initial_bytes = initialCount * sizeof(const mirror::Object*); @@ -184,9 +184,9 @@ bool IndirectReferenceTable::Remove(uint32_t cookie, IndirectRef iref) { int idx = ExtractIndex(iref); - if (GetIndirectRefKind(iref) == kSirtOrInvalid && - Thread::Current()->SirtContains(reinterpret_cast<jobject>(iref))) { - LOG(WARNING) << "Attempt to remove local SIRT entry from IRT, ignoring"; + if (GetIndirectRefKind(iref) == kHandleScopeOrInvalid && + Thread::Current()->HandleScopeContains(reinterpret_cast<jobject>(iref))) { + LOG(WARNING) << "Attempt to remove local handle scope entry from IRT, ignoring"; return true; } |