< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahVMOperations.hpp

Print this page

 30 class ShenandoahConcurrentGC;
 31 class ShenandoahDegenGC;
 32 class ShenandoahFullGC;
 33 
 34 // VM_operations for the Shenandoah Collector.
 35 //
 36 // VM_ShenandoahOperation
 37 //   - VM_ShenandoahInitMark: initiate concurrent marking
 38 //   - VM_ShenandoahFinalMarkStartEvac: finish up concurrent marking, and start evacuation
 39 //   - VM_ShenandoahInitUpdateRefs: initiate update references
 40 //   - VM_ShenandoahFinalUpdateRefs: finish up update references
 41 //   - VM_ShenandoahReferenceOperation:
 42 //       - VM_ShenandoahFullGC: do full GC
 43 //       - VM_ShenandoahDegeneratedGC: do STW degenerated GC
 44 
 45 class VM_ShenandoahOperation : public VM_Operation {
 46 protected:
 47   uint         _gc_id;
 48 public:
 49   VM_ShenandoahOperation() : _gc_id(GCId::current()) {};
 50   virtual bool skip_thread_oop_barriers() const { return true; }


 51 };
 52 
 53 class VM_ShenandoahReferenceOperation : public VM_ShenandoahOperation {
 54 public:
 55   VM_ShenandoahReferenceOperation() : VM_ShenandoahOperation() {};
 56   bool doit_prologue();
 57   void doit_epilogue();
 58 };
 59 
 60 class VM_ShenandoahInitMark: public VM_ShenandoahOperation {
 61 private:
 62   ShenandoahConcurrentGC* const _gc;
 63 public:
 64   VM_ShenandoahInitMark(ShenandoahConcurrentGC* gc) :
 65     VM_ShenandoahOperation(),
 66     _gc(gc) {};
 67   VM_Operation::VMOp_Type type() const { return VMOp_ShenandoahInitMark; }
 68   const char* name()             const { return "Shenandoah Init Marking"; }
 69   virtual void doit();
 70 };
 71 
 72 class VM_ShenandoahFinalMarkStartEvac: public VM_ShenandoahOperation {
 73 private:
 74   ShenandoahConcurrentGC* const _gc;
 75 public:
 76   VM_ShenandoahFinalMarkStartEvac(ShenandoahConcurrentGC* gc) :
 77     VM_ShenandoahOperation(),

 30 class ShenandoahConcurrentGC;
 31 class ShenandoahDegenGC;
 32 class ShenandoahFullGC;
 33 
 34 // VM_operations for the Shenandoah Collector.
 35 //
 36 // VM_ShenandoahOperation
 37 //   - VM_ShenandoahInitMark: initiate concurrent marking
 38 //   - VM_ShenandoahFinalMarkStartEvac: finish up concurrent marking, and start evacuation
 39 //   - VM_ShenandoahInitUpdateRefs: initiate update references
 40 //   - VM_ShenandoahFinalUpdateRefs: finish up update references
 41 //   - VM_ShenandoahReferenceOperation:
 42 //       - VM_ShenandoahFullGC: do full GC
 43 //       - VM_ShenandoahDegeneratedGC: do STW degenerated GC
 44 
 45 class VM_ShenandoahOperation : public VM_Operation {
 46 protected:
 47   uint         _gc_id;
 48 public:
 49   VM_ShenandoahOperation() : _gc_id(GCId::current()) {};
 50   bool skip_thread_oop_barriers() const override { return true; }
 51   bool doit_prologue() override;
 52   void doit_epilogue() override;
 53 };
 54 
 55 class VM_ShenandoahReferenceOperation : public VM_ShenandoahOperation {
 56 public:
 57   VM_ShenandoahReferenceOperation() : VM_ShenandoahOperation() {};
 58   bool doit_prologue() override;
 59   void doit_epilogue() override;
 60 };
 61 
 62 class VM_ShenandoahInitMark: public VM_ShenandoahOperation {
 63 private:
 64   ShenandoahConcurrentGC* const _gc;
 65 public:
 66   VM_ShenandoahInitMark(ShenandoahConcurrentGC* gc) :
 67     VM_ShenandoahOperation(),
 68     _gc(gc) {};
 69   VM_Operation::VMOp_Type type() const { return VMOp_ShenandoahInitMark; }
 70   const char* name()             const { return "Shenandoah Init Marking"; }
 71   virtual void doit();
 72 };
 73 
 74 class VM_ShenandoahFinalMarkStartEvac: public VM_ShenandoahOperation {
 75 private:
 76   ShenandoahConcurrentGC* const _gc;
 77 public:
 78   VM_ShenandoahFinalMarkStartEvac(ShenandoahConcurrentGC* gc) :
 79     VM_ShenandoahOperation(),
< prev index next >