From 8a74117cac720239a69e60e734c7044b433fad47 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Mon, 8 Sep 2014 13:22:56 -0700 Subject: Address read barrier issue with cl/106467 And tidy/add a check. Bug: 12687968 Change-Id: If63dc0d9d0a0ce5f2eeb81734ff8f4307865f67d --- runtime/indirect_reference_table-inl.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'runtime/indirect_reference_table-inl.h') diff --git a/runtime/indirect_reference_table-inl.h b/runtime/indirect_reference_table-inl.h index 9bf3ea2..9ee6d89 100644 --- a/runtime/indirect_reference_table-inl.h +++ b/runtime/indirect_reference_table-inl.h @@ -27,15 +27,6 @@ namespace mirror { class Object; } // namespace mirror -inline void IrtIterator::SkipNullsAndTombstones() { - // We skip NULLs and tombstones. Clients don't want to see implementation details. - while (i_ < capacity_ && - (table_[i_].IsNull() || - Runtime::Current()->IsClearedJniWeakGlobal(table_[i_].Read()))) { - ++i_; - } -} - // Verifies that the indirect table lookup is valid. // Returns "false" if something looks bad. inline bool IndirectReferenceTable::GetChecked(IndirectRef iref) const { -- cgit v1.1