comparison src/share/vm/gc_implementation/shared/vmGCOperations.hpp @ 2039:7c5250dbd584

6896624: G1: hotspot:::gc and hotspot:::mem-pool-gc probes are not fired Summary: Fire the gc-begin and gc-end probes for G1. Reviewed-by: kamg, ysr, jcoomes
author tonyp
date Sun, 19 Dec 2010 20:57:16 -0500
parents f95d63e2154a
children 7246a374a9f2
comparison
equal deleted inserted replaced
2038:74ee0db180fa 2039:7c5250dbd584
207 virtual VMOp_Type type() const { return VMOp_GenCollectForPermanentAllocation; } 207 virtual VMOp_Type type() const { return VMOp_GenCollectForPermanentAllocation; }
208 virtual void doit(); 208 virtual void doit();
209 HeapWord* result() const { return _res; } 209 HeapWord* result() const { return _res; }
210 }; 210 };
211 211
212 class DTraceGCProbeMarker : public StackObj {
213 public:
214 DTraceGCProbeMarker(bool full) {
215 VM_GC_Operation::notify_gc_begin(full);
216 }
217
218 ~DTraceGCProbeMarker() {
219 VM_GC_Operation::notify_gc_end();
220 }
221 };
222
212 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_VMGCOPERATIONS_HPP 223 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_VMGCOPERATIONS_HPP