Simplify Epsilon barrier set after BS cleanup epsilon-gc-branch
authorshade
Fri, 10 Nov 2017 19:10:54 +0100
branchepsilon-gc-branch
changeset 55802 b2b4df384c83
parent 55801 415b54aa1007
child 55934 912c55e702d6
Simplify Epsilon barrier set after BS cleanup
src/hotspot/share/gc/epsilon/epsilonBarrierSet.hpp
--- a/src/hotspot/share/gc/epsilon/epsilonBarrierSet.hpp	Fri Nov 10 18:57:51 2017 +0100
+++ b/src/hotspot/share/gc/epsilon/epsilonBarrierSet.hpp	Fri Nov 10 19:10:54 2017 +0100
@@ -28,17 +28,11 @@
 #include "gc/shared/barrierSet.hpp"
 
 // Most are no-ops.
-class EpsilonBarrierSet: public ModRefBarrierSet {
+class EpsilonBarrierSet: public BarrierSet {
   friend class VMStructs;
 
 public:
-  EpsilonBarrierSet() :
-          ModRefBarrierSet(BarrierSet::FakeRtti(BarrierSet::Epsilon)) {};
-
-  virtual bool has_write_ref_barrier()     { return false; }
-  virtual bool has_write_ref_pre_barrier() { return false; }
-  virtual bool has_write_ref_array_opt()   { return true;  } // claim we have these, and then do noop
-  virtual bool has_write_region_opt()      { return true;  } // claim we have these, and then do noop
+  EpsilonBarrierSet() : BarrierSet(BarrierSet::FakeRtti(BarrierSet::Epsilon)) {};
 
   virtual bool is_aligned(HeapWord *addr)  { Unimplemented(); return true; } // no calls for it?
 
@@ -49,10 +43,6 @@
   virtual void write_ref_field_work(void *field, oop new_val, bool release) {}
   virtual void write_ref_array_work(MemRegion mr) {}
   virtual void write_region_work(MemRegion mr) {}
-
-public:
-  virtual void invalidate(MemRegion mr) {}
-  virtual void clear(MemRegion mr) {}
 };
 
 template<>