comparison src/share/vm/memory/heapInspection.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 d1605aabd0a1
children c18cbe5936b8
comparison
equal deleted inserted replaced
598:1fa16c3565be 615:c6c601a0f2d6
125 125
126 #endif // SERVICES_KERNEL 126 #endif // SERVICES_KERNEL
127 127
128 class HeapInspection : public AllStatic { 128 class HeapInspection : public AllStatic {
129 public: 129 public:
130 static void heap_inspection(outputStream* st) KERNEL_RETURN; 130 static void heap_inspection(outputStream* st, bool need_prologue) KERNEL_RETURN;
131 static void find_instances_at_safepoint(klassOop k, GrowableArray<oop>* result) KERNEL_RETURN; 131 static void find_instances_at_safepoint(klassOop k, GrowableArray<oop>* result) KERNEL_RETURN;
132 }; 132 };