--- old/src/hotspot/share/gc/shenandoah/shenandoahHeapRegionSet.inline.hpp 2020-01-24 15:21:06.988520720 +0100 +++ new/src/hotspot/share/gc/shenandoah/shenandoahHeapRegionSet.inline.hpp 2020-01-24 15:21:06.744516618 +0100 @@ -39,9 +39,9 @@ return is_in(r->region_number()); } -bool ShenandoahHeapRegionSet::is_in(oop p) const { +bool ShenandoahHeapRegionSet::is_in(HeapWord* p) const { assert(_heap->is_in(p), "Must be in the heap"); - uintx index = (cast_from_oop(p)) >> _region_size_bytes_shift; + 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;