Lines Matching refs:iref
33 inline bool IndirectReferenceTable::GetChecked(IndirectRef iref) const { in GetChecked() argument
34 if (UNLIKELY(iref == nullptr)) { in GetChecked()
38 if (UNLIKELY(GetIndirectRefKind(iref) == kHandleScopeOrInvalid)) { in GetChecked()
39 LOG(ERROR) << "JNI ERROR (app bug): invalid " << kind_ << " " << iref; in GetChecked()
44 int idx = ExtractIndex(iref); in GetChecked()
47 << iref << " (index " << idx << " in a table of size " << topIndex << ")"; in GetChecked()
52 LOG(ERROR) << "JNI ERROR (app bug): accessed deleted " << kind_ << " " << iref; in GetChecked()
56 if (UNLIKELY(!CheckEntry("use", iref, idx))) { in GetChecked()
63 inline bool IndirectReferenceTable::CheckEntry(const char* what, IndirectRef iref, int idx) const { in CheckEntry() argument
65 if (UNLIKELY(checkRef != iref)) { in CheckEntry()
67 << " stale " << kind_ << " " << iref in CheckEntry()
76 inline mirror::Object* IndirectReferenceTable::Get(IndirectRef iref) const { in Get() argument
77 if (!GetChecked(iref)) { in Get()
80 uint32_t idx = ExtractIndex(iref); in Get()
86 inline void IndirectReferenceTable::Update(IndirectRef iref, mirror::Object* obj) { in Update() argument
87 if (!GetChecked(iref)) { in Update()
88 LOG(WARNING) << "IndirectReferenceTable Update failed to find reference " << iref; in Update()
91 uint32_t idx = ExtractIndex(iref); in Update()