diff 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
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp	Wed Sep 10 19:05:54 2014 +0000
+++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp	Wed Sep 10 13:01:13 2014 -0700
@@ -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); }