src/share/vm/gc_implementation/concurrentMarkSweep/vmCMSOperations.hpp

Print this page




 111 class VM_CMS_Final_Remark: public VM_CMS_Operation {
 112  public:
 113   VM_CMS_Final_Remark(CMSCollector* _collector) :
 114     VM_CMS_Operation(_collector) {}
 115   virtual VMOp_Type type() const { return VMOp_CMS_Final_Remark; }
 116   virtual void doit();
 117 
 118   virtual const CMSCollector::CollectorState legal_state() const {
 119     return CMSCollector::FinalMarking;
 120   }
 121 
 122   virtual const bool needs_pll() const {
 123     return true;
 124   }
 125 };
 126 
 127 
 128 // VM operation to invoke a concurrent collection of the heap as a
 129 // GenCollectedHeap heap.
 130 class VM_GenCollectFullConcurrent: public VM_GC_Operation {

 131  public:
 132   VM_GenCollectFullConcurrent(unsigned int gc_count_before,
 133                               unsigned int full_gc_count_before,
 134                               GCCause::Cause gc_cause)
 135     : VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, true /* full */) {


 136     assert(FullGCCount_lock != NULL, "Error");
 137     assert(UseAsyncConcMarkSweepGC, "Else will hang caller");
 138   }
 139   ~VM_GenCollectFullConcurrent() {}
 140   virtual VMOp_Type type() const { return VMOp_GenCollectFullConcurrent; }
 141   virtual void doit();
 142   virtual void doit_epilogue();
 143   virtual bool is_cheap_allocated() const { return false; }
 144   virtual bool evaluate_at_safepoint() const;
 145 };
 146 
 147 #endif // SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_VMCMSOPERATIONS_HPP


 111 class VM_CMS_Final_Remark: public VM_CMS_Operation {
 112  public:
 113   VM_CMS_Final_Remark(CMSCollector* _collector) :
 114     VM_CMS_Operation(_collector) {}
 115   virtual VMOp_Type type() const { return VMOp_CMS_Final_Remark; }
 116   virtual void doit();
 117 
 118   virtual const CMSCollector::CollectorState legal_state() const {
 119     return CMSCollector::FinalMarking;
 120   }
 121 
 122   virtual const bool needs_pll() const {
 123     return true;
 124   }
 125 };
 126 
 127 
 128 // VM operation to invoke a concurrent collection of the heap as a
 129 // GenCollectedHeap heap.
 130 class VM_GenCollectFullConcurrent: public VM_GC_Operation {
 131   bool _disabled_icms;
 132  public:
 133   VM_GenCollectFullConcurrent(unsigned int gc_count_before,
 134                               unsigned int full_gc_count_before,
 135                               GCCause::Cause gc_cause)
 136     : VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, true /* full */),
 137       _disabled_icms(false)
 138   {
 139     assert(FullGCCount_lock != NULL, "Error");
 140     assert(UseAsyncConcMarkSweepGC, "Else will hang caller");
 141   }
 142   ~VM_GenCollectFullConcurrent() {}
 143   virtual VMOp_Type type() const { return VMOp_GenCollectFullConcurrent; }
 144   virtual void doit();
 145   virtual void doit_epilogue();
 146   virtual bool is_cheap_allocated() const { return false; }
 147   virtual bool evaluate_at_safepoint() const;
 148 };
 149 
 150 #endif // SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_VMCMSOPERATIONS_HPP