< prev index next >

src/share/vm/gc/shared/workgroup.hpp

Print this page
rev 11040 : 8155232: Augment Workgang to run task with a given number of threads
Summary: Add a method to run a WorkGang with a set number of threads.
Reviewed-by:
rev 11041 : [mq]: 8155232-stefank-review

*** 190,201 **** WorkGang(const char* name, uint workers, bool are_GC_task_threads, bool are_ConcurrentGC_threads); ! // Run a task, returns when the task is done. virtual void run_task(AbstractGangTask* task); protected: virtual AbstractGangWorker* allocate_worker(uint which); }; --- 190,205 ---- WorkGang(const char* name, uint workers, bool are_GC_task_threads, bool are_ConcurrentGC_threads); ! // Run a task using the current active number of workers, returns when the task is done. virtual void run_task(AbstractGangTask* task); + // Run a task with the given number of workers, returns + // when the task is done. The number of workers must be at most the number of + // active workers. + void run_task(AbstractGangTask* task, uint num_workers); protected: virtual AbstractGangWorker* allocate_worker(uint which); };
< prev index next >