< prev index next >

src/share/vm/gc_implementation/shenandoah/shenandoahCollectionSet.inline.hpp

Print this page
rev 10542 : [backport] Constify ShHeapRegionSet and ShCollectionSet

*** 37,47 **** return is_in(r->region_number()); } bool ShenandoahCollectionSet::is_in(HeapWord* p) const { assert(_heap->is_in(p), "Must be in the heap"); ! uintx index = ((uintx) p) >> ShenandoahHeapRegion::region_size_bytes_shift(); // no need to subtract the bottom of the heap from p, // _biased_cset_map is biased return _biased_cset_map[index] == 1; } --- 37,47 ---- return is_in(r->region_number()); } bool ShenandoahCollectionSet::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_cset_map is biased return _biased_cset_map[index] == 1; }
< prev index next >