Searched refs:num_threads (Results 1 – 6 of 6) sorted by relevance
/art/runtime/ |
D | barrier_test.cc | 55 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.load(std::memory_order_relaxed) != num_threads) { in TEST_F() 82 EXPECT_EQ(count1.load(std::memory_order_relaxed), num_threads); in TEST_F() 83 EXPECT_EQ(count2.load(std::memory_order_relaxed), 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()
|
D | thread_pool_test.cc | 56 static int32_t num_threads; member in art::ThreadPoolTest 59 int32_t ThreadPoolTest::num_threads = 4; member in art::ThreadPoolTest 64 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 66 static const int32_t num_tasks = num_threads * 4; in TEST_F() 79 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 81 static const int32_t num_tasks = num_threads * 4; in TEST_F() 104 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 107 static const int32_t num_tasks = num_threads * 100; in TEST_F() 154 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
|
D | thread_pool.cc | 128 size_t num_threads, in ThreadPool() argument 141 max_active_workers_(num_threads), in ThreadPool()
|
D | thread_pool.h | 136 size_t num_threads,
|
/art/test/1944-sudden-exit/src/art/ |
D | Test1944.java | 42 private static int num_threads = 10; field in Test1944 45 final Semaphore started = new Semaphore(-(num_threads - 1)); in run() 52 Thread[] threads = new Thread[num_threads]; in run() 53 for (int i = 0; i < num_threads; i++) { in run()
|
/art/runtime/gc/ |
D | heap.cc | 1003 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); in CreateThreadPool() local 1004 if (num_threads != 0) { in CreateThreadPool() 1005 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads)); in CreateThreadPool()
|