Lines Matching defs:workers

95   // Distributes the task out to num_workers workers.
96 // Returns when the task has been completed by all workers.
109 // The work gang is the collection of workers to execute tasks.
110 // The number of workers run for a task is "_active_workers"
111 // while "_total_workers" is the number of available of workers.
116 // The count of the number of workers in the gang.
118 // The currently active workers in this gang.
120 // The count of created workers in the gang.
135 AbstractWorkGang(const char* name, uint workers, bool are_GC_task_threads, bool are_ConcurrentGC_threads) :
137 _total_workers(workers),
138 _active_workers(UseDynamicNumberOfGCThreads ? 1U : workers),
144 // Initialize workers in the gang. Return true if initialization succeeded.
160 "Unless dynamic should use total workers");
166 "Trying to set more workers active than there are");
169 assert(v != 0, "Trying to set active workers to 0");
170 log_trace(gc, task)("%s: using %d out of %d workers", name(), _active_workers, _total_workers);
174 // Add GC workers as needed.
177 // Add GC workers as needed to reach the specified number of workers.
204 // An class representing a gang of workers.
219 uint workers,
223 // Run a task using the current active number of workers, returns when the task is done.
225 // Run a task with the given number of workers, returns
226 // when the task is done. The number of workers must be at most the number of
227 // active workers. Additional workers may be created if an insufficient
235 // Several instances of this class run in parallel as workers for a gang.
274 // the barrier and must wait until all other workers have entered
300 // Set the number of workers that will use the barrier.
301 // Must be called before any of the workers start running.