equal
deleted
inserted
replaced
795 return contains_reference_locked(from); |
795 return contains_reference_locked(from); |
796 } |
796 } |
797 |
797 |
798 bool OtherRegionsTable::contains_reference_locked(OopOrNarrowOopStar from) const { |
798 bool OtherRegionsTable::contains_reference_locked(OopOrNarrowOopStar from) const { |
799 HeapRegion* hr = _g1h->heap_region_containing_raw(from); |
799 HeapRegion* hr = _g1h->heap_region_containing_raw(from); |
800 if (hr == NULL) return false; |
|
801 RegionIdx_t hr_ind = (RegionIdx_t) hr->hrs_index(); |
800 RegionIdx_t hr_ind = (RegionIdx_t) hr->hrs_index(); |
802 // Is this region in the coarse map? |
801 // Is this region in the coarse map? |
803 if (_coarse_map.at(hr_ind)) return true; |
802 if (_coarse_map.at(hr_ind)) return true; |
804 |
803 |
805 PerRegionTable* prt = find_region_table(hr_ind & _mod_max_fine_entries_mask, |
804 PerRegionTable* prt = find_region_table(hr_ind & _mod_max_fine_entries_mask, |