Mercurial > hg > truffle
comparison src/share/vm/services/attachListener.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 | a61af66fc99e |
children | ba7ea42fc66e |
comparison
equal
deleted
inserted
replaced
598:1fa16c3565be | 615:c6c601a0f2d6 |
---|---|
192 out->print_cr("Invalid argument to inspectheap operation: %s", arg0); | 192 out->print_cr("Invalid argument to inspectheap operation: %s", arg0); |
193 return JNI_ERR; | 193 return JNI_ERR; |
194 } | 194 } |
195 live_objects_only = strcmp(arg0, "-live") == 0; | 195 live_objects_only = strcmp(arg0, "-live") == 0; |
196 } | 196 } |
197 VM_GC_HeapInspection heapop(out, live_objects_only /* request gc */); | 197 VM_GC_HeapInspection heapop(out, live_objects_only /* request full gc */, true /* need_prologue */); |
198 VMThread::execute(&heapop); | 198 VMThread::execute(&heapop); |
199 return JNI_OK; | 199 return JNI_OK; |
200 } | 200 } |
201 | 201 |
202 // set a boolean global flag using value from AttachOperation | 202 // set a boolean global flag using value from AttachOperation |