Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 9 of 9) 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.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()
Dthread_pool_test.cc56 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()
Dthread_pool.cc153 size_t num_threads, in ThreadPool() argument
166 max_active_workers_(num_threads), in ThreadPool()
Dthread_pool.h136 size_t num_threads,
/art/test/1986-structural-redefine-multi-thread-stack-scope/src/
DMain.java85 final int num_threads = 10; in main() local
86 Object[] results = new Object[num_threads]; in main()
87 Thread[] threads = new Thread[num_threads]; in main()
88 CountDownLatch start_latch = new CountDownLatch(num_threads); in main()
90 for (int i = 0; i < num_threads; i++) { in main()
/art/test/1995-final-virtual-structural-multithread/src/art/
DTest1995.java146 public static MyThread[] startThreads(int num_threads) throws Exception { in startThreads() argument
147 CountDownLatch cdl = new CountDownLatch(num_threads); in startThreads()
148 MyThread[] res = new MyThread[num_threads]; in startThreads()
149 for (int i = 0; i < num_threads; i++) { in startThreads()
/art/test/2001-virtual-structural-multithread/src-art/art/
DTest2001.java208 public static MyThread[] startThreads(int num_threads) throws Exception { in startThreads() argument
209 CountDownLatch cdl = new CountDownLatch(num_threads); in startThreads()
210 MyThread[] res = new MyThread[num_threads]; in startThreads()
211 for (int i = 0; i < num_threads; i++) { in startThreads()
/art/test/2005-pause-all-redefine-multithreaded/src/art/
DTest2005.java147 public static MyThread[] startThreads(int num_threads) throws Exception { in startThreads() argument
148 CountDownLatch cdl = new CountDownLatch(num_threads); in startThreads()
149 MyThread[] res = new MyThread[num_threads]; in startThreads()
150 for (int i = 0; i < num_threads; i++) { in startThreads()
/art/runtime/gc/
Dheap.cc1015 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); in CreateThreadPool() local
1016 if (num_threads != 0) { in CreateThreadPool()
1017 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads)); in CreateThreadPool()