Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp @ 20445:e5668dcf12e9
8057818: collect allocation context statistics at gc pauses
Reviewed-by: mikael, jmasa
author | jcoomes |
---|---|
date | Wed, 10 Sep 2014 13:01:13 -0700 |
parents | 227a9e5e4b4a |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20444:fd9feb55481c | 20445:e5668dcf12e9 |
---|---|
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 { |