Home
last modified time | relevance | path

Searched refs:task (Results 1 – 9 of 9) sorted by relevance

/art/runtime/gc/
Dtask_processor.cc35 for (HeapTask* task : tasks_) { in ~TaskProcessor()
36 task->Finalize(); in ~TaskProcessor()
41 void TaskProcessor::AddTask(Thread* self, HeapTask* task) { in AddTask() argument
44 tasks_.insert(task); in AddTask()
60 HeapTask* task = *tasks_.begin(); in GetTask() local
63 uint64_t target_time = task->GetTargetRunTime(); in GetTask()
66 return task; in GetTask()
79 void TaskProcessor::UpdateTargetRunTime(Thread* self, HeapTask* task, uint64_t new_target_time) { in UpdateTargetRunTime() argument
82 auto range = tasks_.equal_range(task); in UpdateTargetRunTime()
84 if (*it == task) { in UpdateTargetRunTime()
[all …]
Dtask_processor_test.cc133 auto* task = new TestOrderTask(pair.first, pair.second, &counter); in TEST_F() local
134 task_processor.AddTask(self, task); in TEST_F()
Dtask_processor.h57 void AddTask(Thread* self, HeapTask* task) REQUIRES(!lock_);
Dreference_processor.cc285 ClearedReferenceTask task(cleared_references); in EnqueueClearedReferences() local
286 task.Run(self); in EnqueueClearedReferences()
/art/runtime/
Dthread_pool.cc85 Task* task = nullptr; in Run() local
87 while ((task = thread_pool_->GetTask(self)) != nullptr) { in Run()
88 task->Run(self); in Run()
89 task->Finalize(); in Run()
109 void ThreadPool::AddTask(Thread* self, Task* task) { in AddTask() argument
111 tasks_.push_back(task); in AddTask()
189 Task* task = TryGetTaskLocked(); in GetTask() local
190 if (task != nullptr) { in GetTask()
191 return task; in GetTask()
220 Task* task = tasks_.front(); in TryGetTaskLocked() local
[all …]
Dthread_pool.h103 void AddTask(Thread* self, Task* task) REQUIRES(!task_queue_lock_);
Doat_file_assistant_test.cc1217 std::unique_ptr<RaceGenerateTask> task(new RaceGenerateTask(dex_location, oat_location)); in TEST_F() local
1218 thread_pool.AddTask(self, task.get()); in TEST_F()
1219 tasks.push_back(std::move(task)); in TEST_F()
1226 for (auto& task : tasks) { in TEST_F() local
1227 const OatFile* oat_file = task->GetLoadedOatFile(); in TEST_F()
/art/test/708-jit-cache-churn/src/
DJitCacheChurnTest.java71 private void runTasks(Callable<Integer> task) { in runTasks() argument
73 ensureJitCompiled(task.getClass(), JITTED_METHOD); in runTasks()
79 tasks.add(i, task); in runTasks()
/art/runtime/gc/collector/
Dmark_sweep.cc778 auto* task = new MarkStackTask(thread_pool_, in MarkStackPush() local
782 thread_pool_->AddTask(Thread::Current(), task); in MarkStackPush()
931 auto* task = new CardScanTask(thread_pool, in ScanGrayObjects() local
940 thread_pool->AddTask(self, task); in ScanGrayObjects()
1059 auto* task = new RecursiveMarkTask(thread_pool, in RecursiveMark() local
1064 thread_pool->AddTask(self, task); in RecursiveMark()