--- old/src/share/vm/gc/g1/heapRegionRemSet.cpp 2017-04-25 16:44:45.571174825 +0200 +++ new/src/share/vm/gc/g1/heapRegionRemSet.cpp 2017-04-25 16:44:45.419174830 +0200 @@ -101,7 +101,7 @@ if (loc_hr->is_in_reserved(from)) { size_t hw_offset = pointer_delta((HeapWord*)from, loc_hr->bottom()); CardIdx_t from_card = (CardIdx_t) - hw_offset >> (CardTableModRefBS::card_shift - LogHeapWordSize); + hw_offset >> (G1CardTable::card_shift - LogHeapWordSize); assert((size_t)from_card < HeapRegion::CardsPerRegion, "Must be in range."); @@ -170,7 +170,7 @@ bool contains_reference(OopOrNarrowOopStar from) const { assert(hr()->is_in_reserved(from), "Precondition."); size_t card_ind = pointer_delta(from, hr()->bottom(), - CardTableModRefBS::card_size); + G1CardTable::card_size); return _bm.at(card_ind); } @@ -356,7 +356,7 @@ void OtherRegionsTable::add_reference(OopOrNarrowOopStar from, uint tid) { uint cur_hrm_ind = _hr->hrm_index(); - int from_card = (int)(uintptr_t(from) >> CardTableModRefBS::card_shift); + int from_card = (int)(uintptr_t(from) >> G1CardTable::card_shift); if (G1FromCardCache::contains_or_replace(tid, cur_hrm_ind, from_card)) { assert(contains_reference(from), "We just found " PTR_FORMAT " in the FromCardCache", p2i(from)); @@ -384,7 +384,7 @@ uintptr_t from_hr_bot_card_index = uintptr_t(from_hr->bottom()) - >> CardTableModRefBS::card_shift; + >> G1CardTable::card_shift; CardIdx_t card_index = from_card - from_hr_bot_card_index; assert((size_t)card_index < HeapRegion::CardsPerRegion, "Must be in range."); @@ -673,9 +673,9 @@ } else { uintptr_t from_card = - (uintptr_t(from) >> CardTableModRefBS::card_shift); + (uintptr_t(from) >> G1CardTable::card_shift); uintptr_t hr_bot_card_index = - uintptr_t(hr->bottom()) >> CardTableModRefBS::card_shift; + uintptr_t(hr->bottom()) >> G1CardTable::card_shift; assert(from_card >= hr_bot_card_index, "Inv"); CardIdx_t card_index = from_card - hr_bot_card_index; assert((size_t)card_index < HeapRegion::CardsPerRegion,