34 #include "gc_implementation/g1/heapRegionSet.inline.hpp" |
34 #include "gc_implementation/g1/heapRegionSet.inline.hpp" |
35 #include "runtime/orderAccess.inline.hpp" |
35 #include "runtime/orderAccess.inline.hpp" |
36 #include "utilities/taskqueue.hpp" |
36 #include "utilities/taskqueue.hpp" |
37 |
37 |
38 // Inline functions for G1CollectedHeap |
38 // Inline functions for G1CollectedHeap |
|
39 |
|
40 inline AllocationContextStats& G1CollectedHeap::allocation_context_stats() { |
|
41 return _allocation_context_stats; |
|
42 } |
39 |
43 |
40 // Return the region with the given index. It assumes the index is valid. |
44 // Return the region with the given index. It assumes the index is valid. |
41 inline HeapRegion* G1CollectedHeap::region_at(uint index) const { return _hrm.at(index); } |
45 inline HeapRegion* G1CollectedHeap::region_at(uint index) const { return _hrm.at(index); } |
42 |
46 |
43 inline uint G1CollectedHeap::addr_to_region(HeapWord* addr) const { |
47 inline uint G1CollectedHeap::addr_to_region(HeapWord* addr) const { |