Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/globals.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 | dca06e7f503d |
children | 7bb995fbd3c0 660978a2a31a |
comparison
equal
deleted
inserted
replaced
598:1fa16c3565be | 615:c6c601a0f2d6 |
---|---|
660 "for examples") \ | 660 "for examples") \ |
661 \ | 661 \ |
662 product(ccstrlist, OnOutOfMemoryError, "", \ | 662 product(ccstrlist, OnOutOfMemoryError, "", \ |
663 "Run user-defined commands on first java.lang.OutOfMemoryError") \ | 663 "Run user-defined commands on first java.lang.OutOfMemoryError") \ |
664 \ | 664 \ |
665 manageable(bool, HeapDumpBeforeFullGC, false, \ | |
666 "Dump heap to file before any major stop-world GC") \ | |
667 \ | |
668 manageable(bool, HeapDumpAfterFullGC, false, \ | |
669 "Dump heap to file after any major stop-world GC") \ | |
670 \ | |
665 manageable(bool, HeapDumpOnOutOfMemoryError, false, \ | 671 manageable(bool, HeapDumpOnOutOfMemoryError, false, \ |
666 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ | 672 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ |
667 \ | 673 \ |
668 manageable(ccstr, HeapDumpPath, NULL, \ | 674 manageable(ccstr, HeapDumpPath, NULL, \ |
669 "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ | 675 "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ |
1968 product_rw(bool, PrintHeapAtGC, false, \ | 1974 product_rw(bool, PrintHeapAtGC, false, \ |
1969 "Print heap layout before and after each GC") \ | 1975 "Print heap layout before and after each GC") \ |
1970 \ | 1976 \ |
1971 product(bool, PrintHeapAtSIGBREAK, true, \ | 1977 product(bool, PrintHeapAtSIGBREAK, true, \ |
1972 "Print heap layout in response to SIGBREAK") \ | 1978 "Print heap layout in response to SIGBREAK") \ |
1979 \ | |
1980 manageable(bool, PrintClassHistogramBeforeFullGC, false, \ | |
1981 "Print a class histogram before any major stop-world GC") \ | |
1982 \ | |
1983 manageable(bool, PrintClassHistogramAfterFullGC, false, \ | |
1984 "Print a class histogram after any major stop-world GC") \ | |
1973 \ | 1985 \ |
1974 manageable(bool, PrintClassHistogram, false, \ | 1986 manageable(bool, PrintClassHistogram, false, \ |
1975 "Print a histogram of class instances") \ | 1987 "Print a histogram of class instances") \ |
1976 \ | 1988 \ |
1977 develop(bool, TraceWorkGang, false, \ | 1989 develop(bool, TraceWorkGang, false, \ |