Lines Matching refs:task
1257 Task* task = new JitCompileTask( in CompileMethodFromProfile() local
1260 AddPostBootTask(self, task); in CompileMethodFromProfile()
1262 thread_pool_->AddTask(self, task); in CompileMethodFromProfile()
1620 void Jit::AddPostBootTask(Thread* self, Task* task) { in AddPostBootTask() argument
1623 thread_pool_->AddTask(self, task); in AddPostBootTask()
1625 tasks_after_boot_.push_back(task); in AddPostBootTask()
1637 for (Task* task : tasks) { in BootCompleted()
1638 thread_pool_->AddTask(self, task); in BootCompleted()
1754 Task* task = nullptr; in RemoveAllTasks() local
1761 task = generic_queue_.front(); in RemoveAllTasks()
1764 task->Finalize(); in RemoveAllTasks()
1778 void JitThreadPool::AddTask(Thread* self, Task* task) { in AddTask() argument
1783 task->Finalize(); in AddTask()
1786 generic_queue_.push_back(task); in AddTask()
1836 Task* task = generic_queue_.front(); in TryGetTaskLocked() local
1838 return task; in TryGetTaskLocked()
1842 Task* task = FetchFrom(osr_queue_, CompilationKind::kOsr); in TryGetTaskLocked() local
1843 if (task == nullptr) { in TryGetTaskLocked()
1844 task = FetchFrom(baseline_queue_, CompilationKind::kBaseline); in TryGetTaskLocked()
1845 if (task == nullptr) { in TryGetTaskLocked()
1846 task = FetchFrom(optimized_queue_, CompilationKind::kOptimized); in TryGetTaskLocked()
1849 return task; in TryGetTaskLocked()
1856 JitCompileTask* task = new JitCompileTask(method, JitCompileTask::TaskKind::kCompile, kind); in FetchFrom() local
1857 current_compilations_.insert(task); in FetchFrom()
1858 return task; in FetchFrom()
1863 void JitThreadPool::Remove(JitCompileTask* task) { in Remove() argument
1865 current_compilations_.erase(task); in Remove()
1866 switch (task->GetCompilationKind()) { in Remove()
1868 osr_enqueued_methods_.erase(task->GetArtMethod()); in Remove()
1872 baseline_enqueued_methods_.erase(task->GetArtMethod()); in Remove()
1876 optimized_enqueued_methods_.erase(task->GetArtMethod()); in Remove()
1906 for (JitCompileTask* task : current_compilations_) { in VisitRoots()
1907 methods.push_back(task->GetArtMethod()); in VisitRoots()