Lines Matching refs:index
158 u4 index = extractIndex(iref);
159 if (index >= topIndex) {
161 ALOGE("JNI ERROR (app bug): accessed stale %s reference %p (index %d in a table of size %d)",
162 indirectRefKindToString(kind_), iref, index, topIndex);
167 Object* obj = table_[index].obj;
176 if (serial != table_[index].serial) {
204 * If the entry is not between the current top index and the bottom index
225 u4 index;
227 index = extractIndex(iref);
228 if (index < bottomIndex) {
230 ALOGV("Attempt to remove index outside index area (%ud vs %ud-%ud)",
231 index, bottomIndex, topIndex);
234 if (index >= topIndex) {
236 ALOGD("Attempt to remove invalid index %ud (bottom=%ud top=%ud)",
237 index, bottomIndex, topIndex);
240 if (table_[index].obj == NULL) {
246 if (table_[index].serial != serial) {
252 // reference looks like a pointer, scan the table to find the index
258 index = i;
264 if (index == topIndex - 1) {
289 table_[index].obj = NULL;
291 ALOGV("+++ left hole at %d, holes=%d", index, segmentState.parts.numHoles);