< prev index next >

src/hotspot/share/gc/epsilon/epsilonHeap.hpp

Print this page

        

@@ -117,10 +117,14 @@
   bool block_is_obj(const HeapWord* addr) const { return false; }
 
   // No GC threads
   virtual void gc_threads_do(ThreadClosure* tc) const {}
 
+  // Runs the given AbstractGangTask with the current active workers
+  // No workGang for EpsilonHeap, work serially with thread 0
+  virtual void run_task(AbstractGangTask* task) { task->work(0); }
+
   // No nmethod handling
   virtual void register_nmethod(nmethod* nm) {}
   virtual void unregister_nmethod(nmethod* nm) {}
   virtual void flush_nmethod(nmethod* nm) {}
   virtual void verify_nmethod(nmethod* nm) {}

@@ -139,12 +143,10 @@
 
   virtual void print_on(outputStream* st) const;
   virtual void print_tracing_info() const;
   virtual bool print_location(outputStream* st, void* addr) const;
 
-  // Runs the given AbstractGangTask with the current active workers.
-  virtual void run_task(AbstractGangTask* task);
 
 private:
   void print_heap_info(size_t used) const;
   void print_metaspace_info() const;
 
< prev index next >