Home
last modified time | relevance | path

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

1234567

/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dlock_holder_test.cpp60 std::array<std::thread, TEST_THREADS> threads; in TEST_F() local
63 threads[i] = std::thread(LockMutexesAndIncrement<Mutex>, std::ref(var), std::ref(lock)); in TEST_F()
67 threads[i].join(); in TEST_F()
77 std::array<std::thread, TEST_THREADS> threads; in TEST_F() local
83 threads[0U] = in TEST_F()
85 threads[1U] = in TEST_F()
89 threads[j].join(); in TEST_F()
99threads[0U] = std::thread(LockMutexesAndIncrement<Mutex, RecursiveMutex>, std::ref(var), std::ref(… in TEST_F()
101 threads[1U] = std::thread(LockMutexesAndIncrement<RecursiveMutex, Mutex>, std::ref(var), in TEST_F()
105 threads[j].join(); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/docs/
Dtask_manager.md3 …ware(cores)/OS(threads) resources we introduce TaskManager. The main goal of TaskManager is to use…
35 For managing worker threads we should provide machinery for:
38 3. Change priority of worker threads `ThreadManager`
39 4. Distribute worker threads from `ThreadPool` between static and dynamic VM instances to optimize …
46 1. Creation of thread pool with `N` worker threads
47 1. Getting available `WorkerThread` from the pool of available worker threads
48 1. Returning `WorkerThread` back to the pool of available worker threads
54 1. Distribute threads from pool between consumers in accordance with different policies
55 1. Provide machinery for changing priority of the threads managed by current Thread Manager
Dinspector.md15 … encapsulates a `ThreadState` and processes logic of thread suspensions. Threads have the followin…
69 The module is responsible for translation between runtime threads and Inspector session IDs.
77 In the multi-thread version, the two main kinds of threads are considered:
79 - Application threads, these are the execution threads of the debuggable application.
81 …he server thread, while the debugger events are processed by application threads. This fact is use…
91 - and application threads could not process events due to the aforementioned write-lock.
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dlock_free_queue.cpp25 // Atomic with acquire order reason: to sync with push in other threads in Push()
28 // Atomic with acquire order reason: to sync with push in other threads in Push()
30 // Atomic with acquire order reason: to sync with push in other threads in Push()
52 // Atomic with acquire order reason: to sync with push in other threads in Pop()
54 // Atomic with acquire order reason: to sync with push in other threads in Pop()
56 // Atomic with acquire order reason: to sync with push in other threads in Pop()
58 // Atomic with acquire order reason: to sync with push in other threads in Pop()
85 // Atomic with acquire order reason: to sync with push in other threads in FindValue()
87 // Atomic with acquire order reason: to sync with push in other threads in FindValue()
/arkcompiler/runtime_core/static_core/runtime/
Dthread_manager.h32 // This interval is required for waiting for threads to stop.
41 VM_THREAD = 4, // Includes VM threads
86 // Some uninitialized threads may not have attached flag, in SatisfyTheMask()
88 // Newly created threads are using flag suspend new count. in SatisfyTheMask()
165 os << "ARK THREADS (" << threadsCount_ << "):\n"; in EnumerateThreadsForDump()
273 * Tries to stop all daemon threads in case there are no active basic threads
279 * Deregister all suspended threads including daemon threads.
292 …// * CREATED - wait until threads finish initializing which requires communication with ThreadMana… in CanDeregister()
294 // * TERMINATING - threads which requires communication with Runtime; in CanDeregister()
295 // * FINISHED threads should be deleted itself; in CanDeregister()
[all …]
Dmt_thread_manager.cpp88 // Only threads in IS_TERMINATED_LOOP status can be deregistered. in DeregisterSuspendedThreads()
107 // All threads except current are blocked (have BLOCKED or NATIVE status) in DeregisterSuspendedThreads()
108 LOG(DEBUG, RUNTIME) << "Potential termination loop with daemon threads is detected"; in DeregisterSuspendedThreads()
129 LOG(DEBUG, RUNTIME) << "Termination loop with daemon threads was not confirmed"; in StopThreadsOnTerminationLoops()
153 // First wait for non-daemon threads to finish in WaitForDeregistration()
158 // Then stop daemon threads in WaitForDeregistration()
161 // Finally wait until all threads are suspended in WaitForDeregistration()
164 // There are threads, which are not completely registered in WaitForDeregistration()
165 // We can not destroy other threads, as they may use shared data (waiting mutexes) in WaitForDeregistration()
196 // Suspend any future new threads in StopDaemonThreads()
[all …]
Dthread_pool.h54 // Atomic with release order reason: threads should see correct initialization in SetTid()
124 LOG(DEBUG, RUNTIME) << "Scale thread pool for " << newNThreads << " new threads"; in Scale()
126 … LOG(ERROR, RUNTIME) << "Incorrect number of threads " << newNThreads << " for thread pool"; in Scale()
130 // Need to add new threads. in Scale()
139 // Need to remove threads. in Scale()
151 // Same number of threads - do nothing. in Scale()
/arkcompiler/ets_frontend/test262/
Dmix_compile.py59 '--file-threads', str(self.file_threads),
60 '--function-threads', str(self.function_threads),
73 '--file-threads', str(self.file_threads),
74 '--abc-class-threads', str(self.abc_class_threads),
75 '--function-threads', str(self.function_threads),
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/
Dsp_sc_lock_free_queue.h53 // Atomic with release order reason: other threads should see correct value in SPSCLockFreeQueue()
55 // Atomic with release order reason: other threads should see correct value in SPSCLockFreeQueue()
69 // Atomic with release order reason: other threads should see correct value in Push()
72 // Atomic with release order reason: other threads should see correct value in Push()
78 // Atomic with release order reason: other threads should see correct value in Push()
99 // Atomic with release order reason: other threads should see correct value in Pop()
107 // Atomic with release order reason: other threads should see correct value in Pop()
Dsp_mc_lock_free_queue.h70 // Atomic with acq_rel order reason: other threads should see correct value in PopUserScope()
75 // Atomic with acq_rel order reason: other threads should see correct value in ~PopUserScope()
123 * threads will use Pop method until method execution ends
189 // Atomic with acq_rel order reason: other threads should be correct value in TryMovePopIndex()
204 // Atomic with acq_rel order reason: other threads should be correct value in CompareAndSetNextHead()
233 // Atomic with release order reason: other threads should see correct value in SPMCLockFreeQueue()
235 // Atomic with release order reason: other threads should see correct value in SPMCLockFreeQueue()
254 // Atomic with acq_rel order reason: other threads should be correct value in RegisterConsumer()
297 // Atomic with release order reason: other threads should see correct value in Push()
299 // Atomic with release order reason: other threads should see correct value in Push()
[all …]
/arkcompiler/runtime_core/static_core/tools/sampler/
DREADME.md27 …Signals can be ignored if threads are suspended to wait for cpu time(major part of ignored signals…
33 | --csv-tid-separation | single-csv-single-tid | Doesn't distinguish threads
34 | | single-csv-multi-tid (by default) | Distinguish threads by thre…
35 | | multi-csv | Distinguish threads by crea…
/arkcompiler/runtime_core/static_core/libpandafile/tests/
Dpanda_cache_test.cpp282 std::thread threads[NUMBER_OF_READERS]; in TEST() local
286 threads[i] = std::thread(MethodReaderThread, &cache); in TEST()
290 threads[i].join(); in TEST()
301 std::thread threads[NUMBER_OF_READERS]; in TEST() local
305 threads[i] = std::thread(FieldReaderThread, &cache); in TEST()
309 threads[i].join(); in TEST()
320 std::thread threads[NUMBER_OF_READERS]; in TEST() local
324 threads[i] = std::thread(ClassReaderThread, &cache); in TEST()
328 threads[i].join(); in TEST()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgenerational-gc-base.h95 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountFreedYoung()
109 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeFreedYoung()
123 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountMovedYoung()
137 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeMovedYoung()
161 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountMovedTenured()
175 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeMovedTenured()
189 // Atomic with relaxed order reason: memory accesses from different threads in RecordCountFreedTenured()
203 // Atomic with relaxed order reason: memory accesses from different threads in RecordSizeFreedTenured()
Dgc.h294 … // Atomic with acquire order reason: data race with another threads which can update the variable in GetLastGCCause()
301 // order where threads observe all modifications in the same order in IsGCRunning()
643 /// Set GC Threads on best and middle cores before GC
646 /// Set GC Threads on best and middle cores after concurrent phase
649 /// Set GC Threads on saved or weak cores before concurrent phase
652 /// Restore GC Threads after GC on saved cores
668 /// Reset GC Threads on saved or weak cores
672 …Check whether run GC after waiting for mutator threads. Tasks for GC can pass from several mutator…
674 … GC wait for idle state for running, so need to check whether run such GC after waiting for threads
677 * @param counter_before_waiting value of gc counter before waiting for mutator threads
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Drendezvous.h30 * Meeting point for all managed threads.
41 // Wait until all threads release Mutator lock and acquires it for write;
43 // Ends safepoint (wakes up waiting threads, releases Mutator lock);
Drendezvous.cpp29 // Suspend all threads in SafepointBegin()
41 // Resume all threads in SafepointEnd()
/arkcompiler/runtime_core/docs/diagrams/
Dmm-components.pucomponent21 [Daemon threads]
24 [ReferenceProcessor] ..> [Daemon threads]
/arkcompiler/runtime_core/static_core/docs/diagrams/
Dmm-components.plantuml21 [Daemon threads]
24 [ReferenceProcessor] ..> [Daemon threads]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dmultithreaded_intern_string_table_test.cpp198 std::array<std::thread, TEST_THREADS> threads; in TEST_F() local
213threads[i] = std::thread(TestConcurrentInsertion, std::ref(strings), std::ref(arrayItem), this); in TEST_F()
217 threads[i].join(); in TEST_F()
223 std::array<std::thread, TEST_THREADS> threads; in TEST_F() local
225 threads[i] = std::thread(TestThreadEntry, this); in TEST_F()
228 threads[i].join(); in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_sync_primitives.cpp34 // Atomic with acq_rel order reason: sync Lock/Unlock in other threads in Lock()
45 // Atomic with acq_rel order reason: sync Lock/Unlock in other threads in Unlock()
71 // Atomic with acq_rel order reason: sync Wait/Fire in other threads in Wait()
83 // Atomic with acq_rel order reason: sync Wait/Fire in other threads in Fire()
/arkcompiler/runtime_core/static_core/verification/verifier/
Dverifier.cpp294 std::vector<std::thread *> threads; in RunVerifier() local
297 threads.push_back(worker); in RunVerifier()
300 for (auto *thr : threads) { in RunVerifier()
328 uint32_t threads = cliOptions.GetThreads(); in RunThreads() local
329 if (threads == 0) { in RunThreads()
330 threads = std::thread::hardware_concurrency(); in RunThreads()
332 if (threads == 0) { in RunThreads()
333 threads = 1; in RunThreads()
334 } else if (threads > MAX_THREADS) { in RunThreads()
335 threads = MAX_THREADS; in RunThreads()
[all …]
/arkcompiler/toolchain/tooling/client/ark_multi/
DReadMe.md5 Can start a specified number of threads, each thread starts the virtual machine and executes the te…
9 ark_multi [number of threads] [execution file, internal record of abc that needs to be run, one per…
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/docs/
Dsampler.md23threads denoted as `SamplerThread` and `ListenerThread`. The first one is responsible for setting …
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dstackful_coroutine_manager.h29 …* In this implementation coroutines are user-level threads ("fibers") with manually allocated stac…
128 * @brief create the arbitrary number of worker threads
129 * @param how_many total number of worker threads, including MAIN
159 // worker threads-related members
/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()

1234567