Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/vmGCOperations.hpp Fri Dec 17 23:41:31 2010 -0800 +++ b/src/share/vm/gc_implementation/shared/vmGCOperations.hpp Sun Dec 19 20:57:16 2010 -0500 @@ -209,4 +209,15 @@ HeapWord* result() const { return _res; } }; +class DTraceGCProbeMarker : public StackObj { +public: + DTraceGCProbeMarker(bool full) { + VM_GC_Operation::notify_gc_begin(full); + } + + ~DTraceGCProbeMarker() { + VM_GC_Operation::notify_gc_end(); + } +}; + #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_VMGCOPERATIONS_HPP