Home
last modified time | relevance | path

Searched refs:thread_pool (Results 1 – 10 of 10) sorted by relevance

/art/runtime/
Dthread_pool_test.cc63 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() local
67 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
69 thread_pool.StartWorkers(self); in TEST_F()
71 thread_pool.Wait(self, true, false); in TEST_F()
78 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() local
82 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F()
88 thread_pool.StartWorkers(self); in TEST_F()
90 thread_pool.StopWorkers(self); in TEST_F()
92 thread_pool.AddTask(self, new CountTask(&bad_count)); in TEST_F()
97 thread_pool.StartWorkers(self); in TEST_F()
[all …]
Dbarrier_test.cc63 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F() local
69 thread_pool.AddTask(self, new CheckWaitTask(&barrier, &count1, &count2)); in TEST_F()
71 thread_pool.StartWorkers(self); in TEST_F()
80 thread_pool.Wait(self, true, false); in TEST_F()
114 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F() local
120 thread_pool.AddTask(self, new CheckPassTask(&barrier, &count, num_sub_tasks)); in TEST_F()
122 thread_pool.StartWorkers(self); in TEST_F()
Dthread_pool.cc28 ThreadPoolWorker::ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, in ThreadPoolWorker() argument
30 : thread_pool_(thread_pool), in ThreadPoolWorker()
202 WorkStealingWorker::WorkStealingWorker(ThreadPool* thread_pool, const std::string& name, in WorkStealingWorker() argument
204 : ThreadPoolWorker(thread_pool, name, stack_size), task_(NULL) {} in WorkStealingWorker()
209 WorkStealingThreadPool* thread_pool = down_cast<WorkStealingThreadPool*>(thread_pool_); in Run() local
215 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()
231 while (thread_pool->GetTaskCount(self) == 0) { in Run()
235 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()
237 steal_from_task = thread_pool->FindTaskToStealFrom(self); in Run()
253 MutexLock mu(self, thread_pool->work_steal_lock_); in Run()
[all …]
Dmonitor_test.cc328 ThreadPool thread_pool(pool_name, 3); in CommonWaitSetup() local
329 thread_pool.AddTask(self, new CreateTask(test, create_sleep, c_millis, c_expected)); in CommonWaitSetup()
331 thread_pool.AddTask(self, new InterruptTask(test, use_sleep, static_cast<uint64_t>(u_millis))); in CommonWaitSetup()
333 thread_pool.AddTask(self, new UseTask(test, use_sleep, u_millis, u_expected)); in CommonWaitSetup()
335 thread_pool.AddTask(self, new WatchdogTask(test)); in CommonWaitSetup()
336 thread_pool.StartWorkers(self); in CommonWaitSetup()
352 thread_pool.StopWorkers(self); in CommonWaitSetup()
Dthread_pool.h50 ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size);
162 WorkStealingWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size);
DAndroid.mk148 thread_pool.cc \
/art/runtime/gc/collector/
Dmark_sweep.cc552 MarkStackTask(ThreadPool* thread_pool, MarkSweep* mark_sweep, size_t mark_stack_size, in MarkStackTask() argument
555 thread_pool_(thread_pool), in MarkStackTask()
682 CardScanTask(ThreadPool* thread_pool, MarkSweep* mark_sweep, in CardScanTask() argument
686 : MarkStackTask<false>(thread_pool, mark_sweep, mark_stack_size, mark_stack_obj), in CardScanTask()
727 ThreadPool* thread_pool = GetHeap()->GetThreadPool(); in ScanGrayObjects() local
773 auto* task = new CardScanTask(thread_pool, this, space->GetMarkBitmap(), card_begin, in ScanGrayObjects()
776 thread_pool->AddTask(self, task); in ScanGrayObjects()
784 thread_pool->SetMaxActiveWorkers(thread_count - 1); in ScanGrayObjects()
785 thread_pool->StartWorkers(self); in ScanGrayObjects()
786 thread_pool->Wait(self, true, true); in ScanGrayObjects()
[all …]
/art/runtime/gc/space/
Dlarge_object_space_test.cc135 ThreadPool thread_pool("Large object space test thread pool", kNumThreads); in RaceTest() local
137 thread_pool.AddTask(self, new AllocRaceTask(i, kNumIterations, 16 * KB, los)); in RaceTest()
140 thread_pool.StartWorkers(self); in RaceTest()
142 thread_pool.Wait(self, true, false); in RaceTest()
/art/compiler/driver/
Dcompiler_driver.cc510 …std::unique_ptr<ThreadPool> thread_pool(new ThreadPool("Compiler driver thread pool", thread_count… in CompileAll() local
512 PreCompile(class_loader, dex_files, thread_pool.get(), timings); in CompileAll()
513 Compile(class_loader, dex_files, thread_pool.get(), timings); in CompileAll()
574 std::unique_ptr<ThreadPool> thread_pool(new ThreadPool("Compiler driver thread pool", 0U)); in CompileOne() local
575 PreCompile(jclass_loader, dex_files, thread_pool.get(), timings); in CompileOne()
597 ThreadPool* thread_pool, TimingLogger* timings) { in Resolve() argument
601 ResolveDexFile(class_loader, *dex_file, dex_files, thread_pool, timings); in Resolve()
606 ThreadPool* thread_pool, TimingLogger* timings) { in PreCompile() argument
610 Resolve(class_loader, dex_files, thread_pool, timings); in PreCompile()
615 SetVerified(class_loader, dex_files, thread_pool, timings); in PreCompile()
[all …]
Dcompiler_driver.h704 ThreadPool* thread_pool, TimingLogger* timings)
713 ThreadPool* thread_pool, TimingLogger* timings)
717 ThreadPool* thread_pool, TimingLogger* timings)
721 ThreadPool* thread_pool, TimingLogger* timings);
724 ThreadPool* thread_pool, TimingLogger* timings)
728 ThreadPool* thread_pool, TimingLogger* timings);
731 ThreadPool* thread_pool, TimingLogger* timings)
735 ThreadPool* thread_pool, TimingLogger* timings)
739 ThreadPool* thread_pool, TimingLogger* timings)
747 ThreadPool* thread_pool, TimingLogger* timings);
[all …]