Mercurial > hg > truffle
comparison src/share/vm/gc_interface/collectedHeap.hpp @ 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 | 9a25e0c45327 |
children | 7bb995fbd3c0 |
comparison
equal
deleted
inserted
replaced
598:1fa16c3565be | 615:c6c601a0f2d6 |
---|---|
512 virtual jlong millis_since_last_gc() = 0; | 512 virtual jlong millis_since_last_gc() = 0; |
513 | 513 |
514 // Perform any cleanup actions necessary before allowing a verification. | 514 // Perform any cleanup actions necessary before allowing a verification. |
515 virtual void prepare_for_verify() = 0; | 515 virtual void prepare_for_verify() = 0; |
516 | 516 |
517 // Generate any dumps preceding or following a full gc | |
518 void pre_full_gc_dump(); | |
519 void post_full_gc_dump(); | |
520 | |
517 virtual void print() const = 0; | 521 virtual void print() const = 0; |
518 virtual void print_on(outputStream* st) const = 0; | 522 virtual void print_on(outputStream* st) const = 0; |
519 | 523 |
520 // Print all GC threads (other than the VM thread) | 524 // Print all GC threads (other than the VM thread) |
521 // used by this heap. | 525 // used by this heap. |