comparison src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.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 05c6d52fa7a9
children 7bb995fbd3c0
comparison
equal deleted inserted replaced
598:1fa16c3565be 615:c6c601a0f2d6
123 VerifyBeforeGC) { 123 VerifyBeforeGC) {
124 old_gen->verify_object_start_array(); 124 old_gen->verify_object_start_array();
125 perm_gen->verify_object_start_array(); 125 perm_gen->verify_object_start_array();
126 } 126 }
127 127
128 heap->pre_full_gc_dump();
129
128 // Filled in below to track the state of the young gen after the collection. 130 // Filled in below to track the state of the young gen after the collection.
129 bool eden_empty; 131 bool eden_empty;
130 bool survivors_empty; 132 bool survivors_empty;
131 bool young_gen_empty; 133 bool young_gen_empty;
132 134
361 363
362 if (PrintHeapAtGC) { 364 if (PrintHeapAtGC) {
363 Universe::print_heap_after_gc(); 365 Universe::print_heap_after_gc();
364 } 366 }
365 367
368 heap->post_full_gc_dump();
369
366 #ifdef TRACESPINNING 370 #ifdef TRACESPINNING
367 ParallelTaskTerminator::print_termination_counts(); 371 ParallelTaskTerminator::print_termination_counts();
368 #endif 372 #endif
369 } 373 }
370 374