Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.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 | d35872270666 |
children | c10b463abc6e |
comparison
equal
deleted
inserted
replaced
20444:fd9feb55481c | 20445:e5668dcf12e9 |
---|---|
260 // The sequence of all heap regions in the heap. | 260 // The sequence of all heap regions in the heap. |
261 HeapRegionManager _hrm; | 261 HeapRegionManager _hrm; |
262 | 262 |
263 // Class that handles the different kinds of allocations. | 263 // Class that handles the different kinds of allocations. |
264 G1Allocator* _allocator; | 264 G1Allocator* _allocator; |
265 | |
266 // Statistics for each allocation context | |
267 AllocationContextStats _allocation_context_stats; | |
265 | 268 |
266 // PLAB sizing policy for survivors. | 269 // PLAB sizing policy for survivors. |
267 PLABStats _survivor_plab_stats; | 270 PLABStats _survivor_plab_stats; |
268 | 271 |
269 // PLAB sizing policy for tenured objects. | 272 // PLAB sizing policy for tenured objects. |
653 return stats; | 656 return stats; |
654 } | 657 } |
655 | 658 |
656 // Determines PLAB size for a particular allocation purpose. | 659 // Determines PLAB size for a particular allocation purpose. |
657 size_t desired_plab_sz(GCAllocPurpose purpose); | 660 size_t desired_plab_sz(GCAllocPurpose purpose); |
661 | |
662 inline AllocationContextStats& allocation_context_stats(); | |
658 | 663 |
659 // Do anything common to GC's. | 664 // Do anything common to GC's. |
660 virtual void gc_prologue(bool full); | 665 virtual void gc_prologue(bool full); |
661 virtual void gc_epilogue(bool full); | 666 virtual void gc_epilogue(bool full); |
662 | 667 |