comparison src/share/vm/utilities/yieldingWorkgroup.hpp @ 342:37f87013dfd8

6711316: Open source the Garbage-First garbage collector Summary: First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author ysr
date Thu, 05 Jun 2008 15:57:56 -0700
parents a61af66fc99e
children c18cbe5936b8
comparison
equal deleted inserted replaced
189:0b27f3512f9e 342:37f87013dfd8
141 // being the thread that orchestrates the WorkGang via run_task(). 141 // being the thread that orchestrates the WorkGang via run_task().
142 class YieldingFlexibleWorkGang: public AbstractWorkGang { 142 class YieldingFlexibleWorkGang: public AbstractWorkGang {
143 // Here's the public interface to this class. 143 // Here's the public interface to this class.
144 public: 144 public:
145 // Constructor and destructor. 145 // Constructor and destructor.
146 YieldingFlexibleWorkGang(const char* name, int workers, bool are_GC_threads); 146 YieldingFlexibleWorkGang(const char* name, int workers,
147 bool are_GC_task_threads);
147 148
148 YieldingFlexibleGangTask* yielding_task() const { 149 YieldingFlexibleGangTask* yielding_task() const {
149 assert(task() == NULL || task()->is_YieldingFlexibleGang_task(), 150 assert(task() == NULL || task()->is_YieldingFlexibleGang_task(),
150 "Incorrect cast"); 151 "Incorrect cast");
151 return (YieldingFlexibleGangTask*)task(); 152 return (YieldingFlexibleGangTask*)task();