Home
last modified time | relevance | path

Searched full:threads (Results 1 – 25 of 64) sorted by relevance

123

/arkcompiler/runtime_core/runtime/
Dthread_manager.h32 // This interval is required for waiting for threads to stop.
41 VM_THREAD = 4, // Includes VM threads
92 os << "ARK THREADS (" << threads_count_ << "):\n"; in EnumerateThreadsForDump()
197 // Some uninitialized threads may not have attached flag, in SatisfyTheMask()
199 // Newly created threads are using flag suspend new count. in SatisfyTheMask()
224 * Tries to stop all daemon threads in case there are no active basic threads
230 * Deregister all suspended threads including daemon threads.
243 …// * CREATED - wait until threads finish initializing which requires communication with ThreadMana… in CanDeregister()
245 // * TERMINATING - threads which requires communication with Runtime; in CanDeregister()
246 // * FINISHED threads should be deleted itself; in CanDeregister()
[all …]
Dthread_manager.cpp83 … // assumes it stays registered; only threads in statuses FINISHED, IS_TERMINATED_LOOP and NATIVE in DeregisterSuspendedThreads()
105 // All threads except current are blocked (have BLOCKED or NATIVE status) in DeregisterSuspendedThreads()
106 LOG(DEBUG, RUNTIME) << "Potential deadlock with daemon threads is detected"; in DeregisterSuspendedThreads()
127 LOG(DEBUG, RUNTIME) << "Deadlock with daemon threads was not confirmed"; in StopThreadsOnDeadlock()
151 // First wait for non-daemon threads to finish in WaitForDeregistration()
156 // Then stop daemon threads in WaitForDeregistration()
159 // Finally wait until all threads are suspended in WaitForDeregistration()
162 // There are threads, which are not completely registered in WaitForDeregistration()
163 // We can not destroy other threads, as they may use shared data (waiting mutexes) in WaitForDeregistration()
190 // Suspend any future new threads in StopDaemonThreads()
[all …]
Dthread_pool.h102 LOG(DEBUG, RUNTIME) << "Scale thread pool for " << new_n_threads << " new threads"; in Scale()
104 … LOG(ERROR, RUNTIME) << "Incorrect number of threads " << new_n_threads << " for thread pool"; in Scale()
108 // Need to add new threads. in Scale()
117 // Need to remove threads. in Scale()
129 // Same number of threads - do nothing. in Scale()
Dlock_order_graph.cpp35 bool LockOrderGraph::CheckForTerminationLoops(const PandaList<MTManagedThread *> &threads, in CheckForTerminationLoops() argument
43 for (auto thread : threads) { in CheckForTerminationLoops()
88 // the node belongs to a loop (i.e., there is a deadlock with corresponding threads), or in CheckForTerminationLoops()
Doptions.yaml305 …description: Set number of additional GC helper threads. GC uses these threads to speed up collect…
329 …description: The max stack size for marking stage proceed in workers threads, if it exceeded, we w…
588 - name: verification-threads
591 description: number of verification threads
/arkcompiler/runtime_core/libpandafile/tests/
Dpanda_cache_test.cpp274 std::thread threads[NUMBER_OF_READERS]; in TEST() local
277 threads[i] = std::thread(MethodReaderThread, &cache); in TEST()
280 threads[i].join(); in TEST()
290 std::thread threads[NUMBER_OF_READERS]; in TEST() local
293 threads[i] = std::thread(FieldReaderThread, &cache); in TEST()
296 threads[i].join(); in TEST()
306 std::thread threads[NUMBER_OF_READERS]; in TEST() local
309 threads[i] = std::thread(ClassReaderThread, &cache); in TEST()
312 threads[i].join(); in TEST()
/arkcompiler/runtime_core/runtime/mem/gc/
Dgenerational-gc-base.h129 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountFreedYoung()
143 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeFreedYoung()
157 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountMovedYoung()
171 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeMovedYoung()
185 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountMovedTenured()
199 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeMovedTenured()
213 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountFreedTenured()
227 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeFreedTenured()
/arkcompiler/runtime_core/runtime/tests/
Dmultithreaded_intern_string_table_test.cpp194 std::array<std::thread, TEST_THREADS> threads; in TEST_F() local
206threads[i] = std::thread(TestConcurrentInsertion, std::ref(strings), std::ref(array_item), this); in TEST_F()
210 threads[i].join(); in TEST_F()
216 std::array<std::thread, TEST_THREADS> threads; in TEST_F() local
218 threads[i] = std::thread(TestThreadEntry, this); in TEST_F()
221 threads[i].join(); in TEST_F()
Dallocator_test_base.h355 * \brief Simultaneously allocate/free objects in different threads
359 * @tparam THREADS_COUNT - the number of threads used in this test
367 * \brief Simultaneously allocate/free objects in different threads
370 * @tparam THREADS_COUNT - the number of threads used in this test
379 …\brief Simultaneously allocate objects and iterate over objects (in range too) in different threads
382 * @tparam THREADS_COUNT - the number of threads used in this test
391 * \brief Simultaneously allocate and collect objects in different threads
394 * @tparam THREADS_COUNT - the number of threads used in this test
397 * @param max_thread_with_collect - maximum threads which will call collect simultaneously
1042 … // Do while because other threads can use the whole pool before we try to allocate smth in it in MT_AllocRun()
[all …]
Dmem_stats_test.cpp361 // order where threads observe all modifications in the same order in FillMemStatsForConcurrency()
364 // order where threads observe all modifications in the same order in FillMemStatsForConcurrency()
366 // Unlock all threads in FillMemStatsForConcurrency()
370 // consistent order where threads observe all modifications in the same order in FillMemStatsForConcurrency()
407 std::array<std::thread, NUM_THREADS> threads; in TEST_F() local
413threads[i] = std::thread(FillMemStatsForConcurrency, std::ref(stats), std::ref(ready_to_start), in TEST_F()
418 threads[i].join(); in TEST_F()
Dthread_test.cpp30 * gtest ASSERT_DEATH doesn't work with multiple threads: in ThreadTest()
31 * "In particular, death tests don't like having multiple threads in the parent process" in ThreadTest()
/arkcompiler/runtime_core/runtime/mem/
Drendezvous.h27 /** Meeting point for all managed threads.
38 // Wait until all threads release Mutator lock and acquires it for write;
40 // Ends safepoint (wakes up waiting threads, releases Mutator lock);
Drendezvous.cpp27 // Suspend all threads in SafepointBegin()
39 // Resume all threads in SafepointEnd()
/arkcompiler/runtime_core/verification/verifier/
Dverifier.cpp313 uint32_t threads = cli_options.GetThreads(); in Main() local
314 if (threads == 0) { in Main()
315 threads = std::thread::hardware_concurrency(); in Main()
317 if (threads == 0) { in Main()
318 threads = 1; in Main()
319 } else if (threads > MAX_THREADS) { in Main()
320 threads = MAX_THREADS; in Main()
323 runtime_options.SetVerificationThreads(threads); in Main()
Doptions.yaml141 - name: threads
144 …description: Number of verification threads. Use 0 for the system-specific default, usually 1 thre…
/arkcompiler/ets_frontend/test262/
Drun_test262.py71 parser.add_argument('--threads', default=DEFAULT_THREADS, type=int,
478 def get_timeout(args, threads): argument
479 timeout = DEFAULT_TIMEOUT * threads
486 threads = DEFAULT_THREADS
487 if args.threads:
488 threads = args.threads
489 return threads
560 threads = get_threads(args)
561 timeout = get_timeout(args, threads)
568 test_cmd.append(f"--threads={threads}")
DREADME.md23 [--threads THREADS] [--hostArgs HOSTARGS]
47 --threads THREADS Run this many tests in parallel. Note that the browser
149 --threads=15
Dharness.patch32 - Number(argv.threads), hostType, argv.hostArgs, hostPath, { tempDir, timeout, transform }
44 + Number(argv.threads), hostType, argv.hostArgs, hostPath, { tempDir, timeout, transform, test262D…
100 .nargs('threads', 1)
101 .default('threads', 1)
102 .alias('threads', 't')
/arkcompiler/runtime_core/docs/diagrams/
Dmm-components.pucomponent21 [Daemon threads]
24 [ReferenceProcessor] ..> [Daemon threads]
/arkcompiler/runtime_core/libpandabase/mem/ringbuf/
Dlock_free_ring_buffer.h39 // Atomic with release order reason: threads should see correct initialization in LockFreeBuffer()
41 // Atomic with release order reason: threads should see correct initialization in LockFreeBuffer()
95 // Atomic with release order reason: let others threads to see the latest value in TryPop()
/arkcompiler/runtime_core/libpandabase/tests/
Dalloc_tracker_test.cpp130 std::vector<std::thread> threads; in TEST() local
132 threads.emplace_back( in TEST()
142 for (auto &thread : threads) { in TEST()
/arkcompiler/runtime_core/libpandabase/os/
Dmutex.h81 // This field is set to false in case of deadlock with daemon threads (only daemon threads
83 // those threads ignoring failures on lock structures destructors.
/arkcompiler/runtime_core/runtime/mem/gc/gc-hung/
Dgc_hung.cpp174 // check threads suspend while get "Locks::mutator_lock->WriteLock()", and report to hung
175 void GcHung::CheckSuspend(const PandaList<MTManagedThread *> &threads, uint64_t start_time) in CheckSuspend() argument
179 for (const auto &thread : threads) { in CheckSuspend()
285 void GcHung::Check(const PandaList<MTManagedThread *> &threads, uint64_t start_time) in Check() argument
288 instance_->CheckSuspend(threads, start_time); in Check()
Dgc_hung.h81 static void Check(const PandaList<MTManagedThread *> &threads, uint64_t start_time);
108 void CheckSuspend(const PandaList<MTManagedThread *> &threads, uint64_t start_time);
/arkcompiler/runtime_core/runtime/arch/
Dmemory_helpers.h35 …e while FullMemoryBarrier callers expect all previous reads and writes to be visible in all threads

123