Lines Matching refs:task

45     result = "unknown task";
48 result = "ordinary task";
51 result = "barrier task";
54 result = "noop task";
57 result = "idle task";
93 assert(older() == NULL, "shouldn't have an older task");
94 assert(newer() == NULL, "shouldn't have a newer task");
167 // Enqueue one task.
168 void GCTaskQueue::enqueue(GCTask* task) {
171 " GCTaskQueue::enqueue(task: "
173 this, task);
176 assert(task != NULL, "shouldn't have null task");
177 assert(task->older() == NULL, "shouldn't be on queue");
178 assert(task->newer() == NULL, "shouldn't be on queue");
179 task->set_newer(NULL);
180 task->set_older(insert_end());
182 set_remove_end(task);
184 insert_end()->set_newer(task);
186 set_insert_end(task);
230 // Dequeue one task.
239 assert(result != NULL, "shouldn't have NULL task");
247 // Dequeue one task, preferring one with affinity.
255 // Look down to the next barrier for a task with this affinity.
270 // If we didn't find anything with affinity, just take the next task.
284 assert(result != NULL, "shouldn't have null task");
301 GCTask* GCTaskQueue::remove(GCTask* task) {
304 assert(task != NULL, "shouldn't have null task");
305 GCTask* result = task;
592 void GCTaskManager::add_task(GCTask* task) {
593 assert(task != NULL, "shouldn't have null task");
597 task, GCTask::Kind::to_string(task->kind()));
599 queue()->enqueue(task);
610 assert(list != NULL, "shouldn't have null task");
669 // Just hand back a Noop task,
674 assert(result != NULL, "shouldn't have null task");
733 // Tell everyone that a task has completed.
780 // to complete. GC workers that execute a stealing task remain in
781 // the stealing task until all stealing tasks have completed. The load
788 // The barrier task will be read by one of the GC
791 // GC worker reads it (which is after the task is added
1087 // Reset the flag in case someone reuses this task.