Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 5 of 5) sorted by relevance

/art/runtime/
Dbarrier_test.cc61 static int32_t num_threads; member in art::BarrierTest
64 int32_t BarrierTest::num_threads = 4; member in art::BarrierTest
69 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
74 for (int32_t i = 0; i < num_threads; ++i) { in TEST_F()
78 barrier.Increment(self, num_threads); in TEST_F()
81 EXPECT_EQ(num_threads, count1.LoadRelaxed()); in TEST_F()
85 barrier.Increment(self, num_threads); in TEST_F()
88 EXPECT_EQ(num_threads, count2.LoadRelaxed()); in TEST_F()
94 EXPECT_EQ(num_threads, count3.LoadRelaxed()); in TEST_F()
124 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
[all …]
Dthread_pool_test.cc55 static int32_t num_threads; member in art::ThreadPoolTest
58 int32_t ThreadPoolTest::num_threads = 4; member in art::ThreadPoolTest
63 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
65 static const int32_t num_tasks = num_threads * 4; in TEST_F()
78 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
80 static const int32_t num_tasks = num_threads * 4; in TEST_F()
134 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
Dthread_pool.cc77 ThreadPool::ThreadPool(const char* name, size_t num_threads) in ThreadPool() argument
88 creation_barier_(num_threads + 1), in ThreadPool()
89 max_active_workers_(num_threads) { in ThreadPool()
91 while (GetThreadCount() < num_threads) { in ThreadPool()
277 WorkStealingThreadPool::WorkStealingThreadPool(const char* name, size_t num_threads) in WorkStealingThreadPool() argument
281 while (GetThreadCount() < num_threads) { in WorkStealingThreadPool()
Dthread_pool.h81 explicit ThreadPool(const char* name, size_t num_threads);
172 explicit WorkStealingThreadPool(const char* name, size_t num_threads);
/art/runtime/gc/
Dheap.cc678 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); in CreateThreadPool() local
679 if (num_threads != 0) { in CreateThreadPool()
680 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads)); in CreateThreadPool()