< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahHeapRegionSet.inline.hpp

Print this page

        

*** 37,49 **** bool ShenandoahHeapRegionSet::is_in(ShenandoahHeapRegion* r) const { return is_in(r->region_number()); } ! bool ShenandoahHeapRegionSet::is_in(oop p) const { assert(_heap->is_in(p), "Must be in the heap"); ! uintx index = (cast_from_oop<uintx>(p)) >> _region_size_bytes_shift; // no need to subtract the bottom of the heap from p, // _biased_set_map is biased return _biased_set_map[index] == 1; } --- 37,49 ---- bool ShenandoahHeapRegionSet::is_in(ShenandoahHeapRegion* r) const { return is_in(r->region_number()); } ! bool ShenandoahHeapRegionSet::is_in(HeapWord* p) const { assert(_heap->is_in(p), "Must be in the heap"); ! uintx index = ((uintx) p) >> _region_size_bytes_shift; // no need to subtract the bottom of the heap from p, // _biased_set_map is biased return _biased_set_map[index] == 1; }
< prev index next >