hotspot/src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp
changeset 24106 dae9277bdf2a
parent 24102 5e9eb5aa4dc5
child 24108 dfc2242fc6b0
equal deleted inserted replaced
24105:93ea1c7cae36 24106:dae9277bdf2a
   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,