hotspot/src/share/vm/gc_implementation/g1/concurrentG1RefineThread.hpp
changeset 24094 5dbf1f44de18
parent 23855 c4574075402c
child 24104 febf9363fb68
equal deleted inserted replaced
24093:095cc0a63ed9 24094:5dbf1f44de18
    62   void set_active(bool x) { _active = x; }
    62   void set_active(bool x) { _active = x; }
    63   bool is_active();
    63   bool is_active();
    64   void activate();
    64   void activate();
    65   void deactivate();
    65   void deactivate();
    66 
    66 
    67   // For use by G1CollectedHeap, which is a friend.
       
    68   static SuspendibleThreadSet* sts() { return &_sts; }
       
    69 
       
    70 public:
    67 public:
    71   virtual void run();
    68   virtual void run();
    72   // Constructor
    69   // Constructor
    73   ConcurrentG1RefineThread(ConcurrentG1Refine* cg1r, ConcurrentG1RefineThread* next,
    70   ConcurrentG1RefineThread(ConcurrentG1Refine* cg1r, ConcurrentG1RefineThread* next,
    74                            uint worker_id_offset, uint worker_id);
    71                            uint worker_id_offset, uint worker_id);
    82   // Total virtual time so far.
    79   // Total virtual time so far.
    83   double vtime_accum() { return _vtime_accum; }
    80   double vtime_accum() { return _vtime_accum; }
    84 
    81 
    85   ConcurrentG1Refine* cg1r() { return _cg1r;     }
    82   ConcurrentG1Refine* cg1r() { return _cg1r;     }
    86 
    83 
    87   // Yield for GC
       
    88   void yield();
       
    89   // shutdown
    84   // shutdown
    90   void stop();
    85   void stop();
    91 };
    86 };
    92 
    87 
    93 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTG1REFINETHREAD_HPP
    88 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTG1REFINETHREAD_HPP