Home
last modified time | relevance | path

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

/art/runtime/
Dbarrier_test.cc55 static int32_t num_threads; member in art::BarrierTest
58 int32_t BarrierTest::num_threads = 4; member in art::BarrierTest
63 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread. in TEST_F()
68 for (int32_t i = 0; i < num_threads; ++i) { in TEST_F()
72 while (count1.LoadRelaxed() != num_threads) { in TEST_F()
82 EXPECT_EQ(count1.LoadRelaxed(), num_threads); in TEST_F()
83 EXPECT_EQ(count2.LoadRelaxed(), num_threads); in TEST_F()
114 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
117 const int32_t num_tasks = num_threads * 4; in TEST_F()
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()
130 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
Dthread_pool.cc108 ThreadPool::ThreadPool(const char* name, size_t num_threads) in ThreadPool() argument
119 creation_barier_(num_threads + 1), in ThreadPool()
120 max_active_workers_(num_threads) { in ThreadPool()
122 while (GetThreadCount() < num_threads) { in ThreadPool()
Dthread_pool.h100 ThreadPool(const char* name, size_t num_threads);
/art/runtime/gc/
Dheap.cc964 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); in CreateThreadPool() local
965 if (num_threads != 0) { in CreateThreadPool()
966 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads)); in CreateThreadPool()