Searched refs:num_threads (Results 1 - 6 of 6) sorted by relevance

/art/runtime/
H A Dbarrier_test.cc55 static int32_t num_threads; member in class:art::BarrierTest
58 int32_t BarrierTest::num_threads = 4; member in class:art::BarrierTest
63 ThreadPool thread_pool("Barrier test thread pool", num_threads);
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread.
68 for (int32_t i = 0; i < num_threads; ++i) {
72 while (count1.LoadRelaxed() != num_threads) {
81 // Both counts should be equal to num_threads now.
82 EXPECT_EQ(count1.LoadRelaxed(), num_threads);
83 EXPECT_EQ(count2.LoadRelaxed(), num_threads);
114 ThreadPool thread_pool("Barrier test thread pool", num_threads);
[all...]
H A Dthread_pool_test.cc56 static int32_t num_threads; member in class:art::ThreadPoolTest
59 int32_t ThreadPoolTest::num_threads = 4; member in class:art::ThreadPoolTest
64 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
66 static const int32_t num_tasks = num_threads * 4;
79 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
81 static const int32_t num_tasks = num_threads * 4;
104 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
107 static const int32_t num_tasks = num_threads * 100;
154 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
H A Dthread_pool.cc123 ThreadPool::ThreadPool(const char* name, size_t num_threads, bool create_peers) argument
134 creation_barier_(num_threads + 1),
135 max_active_workers_(num_threads),
138 while (GetThreadCount() < num_threads) {
H A Dthread_pool.h113 ThreadPool(const char* name, size_t num_threads, bool create_peers = false);
/art/test/1944-sudden-exit/src/art/
H A DTest1944.java42 private static int num_threads = 10; field in class:Test1944
45 final Semaphore started = new Semaphore(-(num_threads - 1));
52 Thread[] threads = new Thread[num_threads];
53 for (int i = 0; i < num_threads; i++) {
/art/runtime/gc/
H A Dheap.cc896 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); local
897 if (num_threads != 0) {
898 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads));

Completed in 139 milliseconds