Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 3869:7f776886a215
6810861: G1: support -XX:+{PrintClassHistogram,HeapDump}{Before,After}FullGC
Summary: Call {pre,post}_full_gc_dump() before and after a STW full gc of G1CollectedHeap. Also adjusted the prefix message, including the addition of missing whitespace.
Reviewed-by: brutisso, tonyp
author | ysr |
---|---|
date | Mon, 22 Aug 2011 12:30:06 -0700 |
parents | ff53346271fe |
children | eeae91c9baba |
comparison
equal
deleted
inserted
replaced
3867:ff53346271fe | 3869:7f776886a215 |
---|---|
1225 Universe::verify(/* allow dirty */ true, | 1225 Universe::verify(/* allow dirty */ true, |
1226 /* silent */ false, | 1226 /* silent */ false, |
1227 /* option */ VerifyOption_G1UsePrevMarking); | 1227 /* option */ VerifyOption_G1UsePrevMarking); |
1228 | 1228 |
1229 } | 1229 } |
1230 pre_full_gc_dump(); | |
1230 | 1231 |
1231 COMPILER2_PRESENT(DerivedPointerTable::clear()); | 1232 COMPILER2_PRESENT(DerivedPointerTable::clear()); |
1232 | 1233 |
1233 // We want to discover references, but not process them yet. | 1234 // We want to discover references, but not process them yet. |
1234 // This mode is disabled in | 1235 // This mode is disabled in |
1399 | 1400 |
1400 if (PrintHeapAtGC) { | 1401 if (PrintHeapAtGC) { |
1401 Universe::print_heap_after_gc(); | 1402 Universe::print_heap_after_gc(); |
1402 } | 1403 } |
1403 g1mm()->update_counters(); | 1404 g1mm()->update_counters(); |
1405 post_full_gc_dump(); | |
1404 | 1406 |
1405 return true; | 1407 return true; |
1406 } | 1408 } |
1407 | 1409 |
1408 void G1CollectedHeap::do_full_collection(bool clear_all_soft_refs) { | 1410 void G1CollectedHeap::do_full_collection(bool clear_all_soft_refs) { |