hotspot/src/share/vm/gc_implementation/shared/vmGCOperations.hpp
changeset 7659 1d92613a1e8a
parent 7397 5b173b4ca846
child 7896 08aadd7aa3ee
--- a/hotspot/src/share/vm/gc_implementation/shared/vmGCOperations.hpp	Fri Dec 17 23:41:31 2010 -0800
+++ b/hotspot/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