comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 20335:eec72fa4b108

8040722: G1: Clean up usages of heap_region_containing Reviewed-by: tschatzl, jmasa
author brutisso
date Tue, 19 Aug 2014 12:39:06 +0200
parents a3953c777565
children 1f1d373cd044
comparison
equal deleted inserted replaced
20334:ff3169f25621 20335:eec72fa4b108
800 return contains_reference_locked(from); 800 return contains_reference_locked(from);
801 } 801 }
802 802
803 bool OtherRegionsTable::contains_reference_locked(OopOrNarrowOopStar from) const { 803 bool OtherRegionsTable::contains_reference_locked(OopOrNarrowOopStar from) const {
804 HeapRegion* hr = _g1h->heap_region_containing_raw(from); 804 HeapRegion* hr = _g1h->heap_region_containing_raw(from);
805 if (hr == NULL) return false;
806 RegionIdx_t hr_ind = (RegionIdx_t) hr->hrs_index(); 805 RegionIdx_t hr_ind = (RegionIdx_t) hr->hrs_index();
807 // Is this region in the coarse map? 806 // Is this region in the coarse map?
808 if (_coarse_map.at(hr_ind)) return true; 807 if (_coarse_map.at(hr_ind)) return true;
809 808
810 PerRegionTable* prt = find_region_table(hr_ind & _mod_max_fine_entries_mask, 809 PerRegionTable* prt = find_region_table(hr_ind & _mod_max_fine_entries_mask,