8057818: collect allocation context statistics at gc pauses

Reviewed-by: mikael, jmasa
This commit is contained in:
John Coomes 2014-09-10 13:01:13 -07:00
parent 0856ec5961
commit 40155ae18d
5 changed files with 19 additions and 1 deletions

View file

@ -37,6 +37,10 @@
// Inline functions for G1CollectedHeap
inline AllocationContextStats& G1CollectedHeap::allocation_context_stats() {
return _allocation_context_stats;
}
// 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); }