< prev index next >

src/hotspot/share/gc/g1/g1HeapRegionEventSender.cpp

Print this page

        

@@ -25,11 +25,10 @@
 #include "precompiled.hpp"
 #include "gc/g1/g1CollectedHeap.hpp"
 #include "gc/g1/heapRegion.hpp"
 #include "g1HeapRegionEventSender.hpp"
 #include "jfr/jfrEvents.hpp"
-#include "runtime/vmThread.hpp"
 
 class DumpEventInfoClosure : public HeapRegionClosure {
 public:
   bool do_heap_region(HeapRegion* r) {
     EventG1HeapRegionInformation evt;

@@ -40,19 +39,11 @@
     evt.commit();
     return false;
   }
 };
 
-class VM_G1SendHeapRegionInfoEvents : public VM_Operation {
-  virtual void doit() {
-    DumpEventInfoClosure c;
-    G1CollectedHeap::heap()->heap_region_iterate(&c);
-  }
-  virtual VMOp_Type type() const { return VMOp_HeapIterateOperation; }
-};
 
 void G1HeapRegionEventSender::send_events() {
-  if (UseG1GC) {
-    VM_G1SendHeapRegionInfoEvents op;
-    VMThread::execute(&op);
-  }
+  DumpEventInfoClosure c;
+
+  G1CollectedHeap::heap()->heap_region_iterate(&c);
 }
< prev index next >