--- old/src/hotspot/share/gc/g1/g1CollectedHeap.inline.hpp 2018-10-05 11:09:12.293863300 -0700 +++ new/src/hotspot/share/gc/g1/g1CollectedHeap.inline.hpp 2018-10-05 11:09:11.451473100 -0700 @@ -58,10 +58,10 @@ // Inline functions for G1CollectedHeap // Return the region with the given index. It assumes the index is valid. -inline HeapRegion* G1CollectedHeap::region_at(uint index) const { return _hrm.at(index); } +inline HeapRegion* G1CollectedHeap::region_at(uint index) const { return _hrm->at(index); } inline HeapRegion* G1CollectedHeap::next_region_in_humongous(HeapRegion* hr) const { - return _hrm.next_region_in_humongous(hr); + return _hrm->next_region_in_humongous(hr); } inline uint G1CollectedHeap::addr_to_region(HeapWord* addr) const { @@ -72,7 +72,7 @@ } inline HeapWord* G1CollectedHeap::bottom_addr_for_region(uint index) const { - return _hrm.reserved().start() + index * HeapRegion::GrainWords; + return _hrm->reserved().start() + index * HeapRegion::GrainWords; } template @@ -81,7 +81,7 @@ assert(is_in_g1_reserved((const void*) addr), "Address " PTR_FORMAT " is outside of the heap ranging from [" PTR_FORMAT " to " PTR_FORMAT ")", p2i((void*)addr), p2i(g1_reserved().start()), p2i(g1_reserved().end())); - return _hrm.addr_to_region((HeapWord*) addr); + return _hrm->addr_to_region((HeapWord*) addr); } inline void G1CollectedHeap::old_set_add(HeapRegion* hr) { @@ -254,12 +254,12 @@ } inline void G1CollectedHeap::set_humongous_reclaim_candidate(uint region, bool value) { - assert(_hrm.at(region)->is_starts_humongous(), "Must start a humongous object"); + assert(_hrm->at(region)->is_starts_humongous(), "Must start a humongous object"); _humongous_reclaim_candidates.set_candidate(region, value); } inline bool G1CollectedHeap::is_humongous_reclaim_candidate(uint region) { - assert(_hrm.at(region)->is_starts_humongous(), "Must start a humongous object"); + assert(_hrm->at(region)->is_starts_humongous(), "Must start a humongous object"); return _humongous_reclaim_candidates.is_candidate(region); }