Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/shared/vmGCOperations.cpp @ 615:c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
Summary: Call newly created CollectedHeap::dump_{pre,post}_full_gc before and after every stop-world full collection cycle on GenCollectedHeap and ParallelScavengeHeap. (Support for G1CollectedHeap forthcoming under CR 6810861.) Small modifications to existing heap dumping and class histogram implementation, especially to allow multiple on-the-fly histos/dumps by the VM thread during a single safepoint.
Reviewed-by: jmasa, alanb, mchung
author | ysr |
---|---|
date | Mon, 02 Mar 2009 16:37:04 -0800 |
parents | 1ee8caae33af |
children | bdb5361c461c |
comparison
equal
deleted
inserted
replaced
598:1fa16c3565be | 615:c6c601a0f2d6 |
---|---|
119 ch->collect_as_vm_thread(GCCause::_heap_inspection); | 119 ch->collect_as_vm_thread(GCCause::_heap_inspection); |
120 } else { | 120 } else { |
121 // make the heap parsable (no need to retire TLABs) | 121 // make the heap parsable (no need to retire TLABs) |
122 ch->ensure_parsability(false); | 122 ch->ensure_parsability(false); |
123 } | 123 } |
124 HeapInspection::heap_inspection(_out); | 124 HeapInspection::heap_inspection(_out, _need_prologue /* need_prologue */); |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 void VM_GenCollectForAllocation::doit() { | 128 void VM_GenCollectForAllocation::doit() { |
129 JvmtiGCForAllocationMarker jgcm; | 129 JvmtiGCForAllocationMarker jgcm; |