comparison src/share/vm/runtime/os.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 773234c55e8c
children bcedf688d882
comparison
equal deleted inserted replaced
598:1fa16c3565be 615:c6c601a0f2d6
205 VMThread::execute(&jni_op); 205 VMThread::execute(&jni_op);
206 VM_FindDeadlocks op1(tty); 206 VM_FindDeadlocks op1(tty);
207 VMThread::execute(&op1); 207 VMThread::execute(&op1);
208 Universe::print_heap_at_SIGBREAK(); 208 Universe::print_heap_at_SIGBREAK();
209 if (PrintClassHistogram) { 209 if (PrintClassHistogram) {
210 VM_GC_HeapInspection op1(gclog_or_tty, true /* force full GC before heap inspection */); 210 VM_GC_HeapInspection op1(gclog_or_tty, true /* force full GC before heap inspection */,
211 true /* need_prologue */);
211 VMThread::execute(&op1); 212 VMThread::execute(&op1);
212 } 213 }
213 if (JvmtiExport::should_post_data_dump()) { 214 if (JvmtiExport::should_post_data_dump()) {
214 JvmtiExport::post_data_dump(); 215 JvmtiExport::post_data_dump();
215 } 216 }