/aosp12/bionic/tests/ |
H A D | leak_test.cpp | 131 const int thread_count = (sysconf(_SC_NPROCESSORS_CONF) > 2) ? 100 : 50; in TEST() local 134 struct thread_data { pthread_barrier_t* barrier; pid_t* tid; } threads[thread_count]; in TEST() 137 ASSERT_EQ(pthread_barrier_init(&barrier, nullptr, thread_count + 1), 0); in TEST() 140 pid_t tids[thread_count]; in TEST() 141 for (int i = 0; i < thread_count; ++i) { in TEST() 157 WaitUntilAllThreadsExited(tids, thread_count); in TEST()
|
H A D | stack_protector_test.cpp | 75 size_t thread_count = 9; in TEST() local 76 for (size_t i = 1; i < thread_count; ++i) { in TEST() 87 ASSERT_EQ(thread_count, checker.tids.size()); in TEST()
|
H A D | pthread_test.cpp | 2659 size_t thread_count; member 2666 BarrierTestHelperData(size_t thread_count, size_t iteration_count) in BarrierTestHelperData() 2667 : thread_count(thread_count), finished_mask(0), serial_thread_count(0), in BarrierTestHelperData() 2687 if (mask == ((1 << arg->data->thread_count) - 1)) { in BarrierTestHelper() 2700 ASSERT_EQ(0, pthread_barrier_init(&data.barrier, nullptr, data.thread_count)); in TEST() 2701 std::vector<pthread_t> threads(data.thread_count); in TEST()
|
/aosp12/art/test/911-get-stack-trace/ |
H A D | stack_trace.cc | 145 jint thread_count; in Java_art_AllTraces_getAllStackTraces() local 148 jvmtiError result = jvmti_env->GetAllStackTraces(max, &stack_infos, &thread_count); in Java_art_AllTraces_getAllStackTraces() 166 jobjectArray ret = CreateObjectArray(env, thread_count, "[Ljava/lang/Object;", callback); in Java_art_AllTraces_getAllStackTraces() 173 jint thread_count = env->GetArrayLength(jthreads); in Java_art_ThreadListTraces_getThreadListStackTraces() local 174 std::unique_ptr<jthread[]> threads(new jthread[thread_count]); in Java_art_ThreadListTraces_getThreadListStackTraces() 175 for (jint i = 0; i != thread_count; ++i) { in Java_art_ThreadListTraces_getThreadListStackTraces() 181 jvmtiError result = jvmti_env->GetThreadListStackTraces(thread_count, in Java_art_ThreadListTraces_getThreadListStackTraces() 202 jobjectArray ret = CreateObjectArray(env, thread_count, "[Ljava/lang/Object;", callback); in Java_art_ThreadListTraces_getThreadListStackTraces()
|
/aosp12/bionic/benchmarks/ |
H A D | get_heap_size_benchmark.cpp | 35 static std::atomic<int> thread_count; variable 39 thread_count++; in thread_func() 47 thread_count = 0; in BM_mallinfo() 54 while (thread_count != NTHREADS) { in BM_mallinfo()
|
/aosp12/art/test/925-threadgroups/ |
H A D | threadgroups.cc | 91 jint thread_count; in Java_art_Test925_getThreadGroupChildren() local 97 &thread_count, in Java_art_Test925_getThreadGroupChildren() 111 return CreateObjectArray(env, thread_count, "java/lang/Thread", inner_callback); in Java_art_Test925_getThreadGroupChildren()
|
/aosp12/art/test/931-agent-thread/ |
H A D | agent_thread.cc | 74 jint thread_count; in AgentMain() local 76 jvmtiError threads_result = jenv->GetAllThreads(&thread_count, &threads); in AgentMain() 79 for (jint i = 0; i != thread_count; ++i) { in AgentMain()
|
/aosp12/art/runtime/native/ |
H A D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 195 uint16_t thread_count = 0; in DdmVmInternal_getThreadStats() local 196 thread_list->ForEach(ThreadCountCallback, &thread_count); in DdmVmInternal_getThreadStats() 200 Append2BE(bytes, thread_count); in DdmVmInternal_getThreadStats()
|
/aosp12/art/dex2oat/driver/ |
H A D | compiler_driver.h | 89 size_t thread_count, 240 size_t thread_count, 260 size_t thread_count, 271 size_t thread_count,
|
H A D | compiler_driver.cc | 257 size_t thread_count, in CompilerDriver() argument 264 parallel_thread_count_(thread_count), in CompilerDriver() 1670 size_t thread_count, in ResolveDexFile() argument 1684 context.ForAll(0, dex_file.NumTypeIds(), &visitor, thread_count); in ResolveDexFile() 1689 context.ForAll(0, dex_file.NumClassDefs(), &visitor, thread_count); in ResolveDexFile() 2018 size_t thread_count, in VerifyDexFile() argument 2030 context.ForAll(0, dex_file.NumClassDefs(), &visitor, thread_count); in VerifyDexFile() 2088 size_t thread_count, in SetVerifiedDexFile() argument 2098 context.ForAll(0, dex_file.NumClassDefs(), &visitor, thread_count); in SetVerifiedDexFile() 2560 size_t thread_count, in CompileDexFile() argument [all …]
|
/aosp12/art/runtime/gc/collector/ |
H A D | mark_sweep.cc | 883 size_t thread_count = GetThreadCount(paused); in ScanGrayObjects() local 885 if (kParallelCardScan && thread_count > 1) { in ScanGrayObjects() 950 thread_pool->SetMaxActiveWorkers(thread_count - 1); in ScanGrayObjects() 1035 size_t thread_count = GetThreadCount(false); in RecursiveMark() local 1054 const size_t n = thread_count * 2; in RecursiveMark() 1068 thread_pool->SetMaxActiveWorkers(thread_count - 1); in RecursiveMark() 1392 void MarkSweep::ProcessMarkStackParallel(size_t thread_count) { in ProcessMarkStackParallel() argument 1404 thread_pool->SetMaxActiveWorkers(thread_count - 1); in ProcessMarkStackParallel() 1417 size_t thread_count = GetThreadCount(paused); in ProcessMarkStack() local 1418 if (kParallelProcessMarkStack && thread_count > 1 && in ProcessMarkStack() [all …]
|
H A D | mark_sweep.h | 294 void ProcessMarkStackParallel(size_t thread_count)
|
/aosp12/bionic/tools/versioner/src/ |
H A D | versioner.cpp | 193 size_t thread_count = max_thread_count; in compileHeaders() local 232 thread_count = std::min(thread_count, jobs.size()); in compileHeaders() 234 if (thread_count == 1) { in compileHeaders() 240 for (size_t i = 0; i < thread_count; ++i) { in compileHeaders()
|
/aosp12/art/test/924-threads/ |
H A D | threads.cc | 151 jint thread_count; in Java_art_Test924_getAllThreads() local 154 jvmtiError result = jvmti_env->GetAllThreads(&thread_count, &threads); in Java_art_Test924_getAllThreads() 162 jobjectArray ret = CreateObjectArray(env, thread_count, "java/lang/Thread", callback); in Java_art_Test924_getAllThreads()
|
/aosp12/art/test/ti-agent/ |
H A D | jni_binder.cc | 197 jint thread_count; in GetClass() local 199 CheckJvmtiError(jvmti_env, jvmti_env->GetAllThreads(&thread_count, &threads)); in GetClass() 203 for (jint t = 0; t != thread_count; ++t) { in GetClass()
|
/aosp12/bionic/libc/bionic/ |
H A D | pthread_cond.cpp | 161 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) { in __pthread_cond_pulse() argument 180 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count); in __pthread_cond_pulse()
|
/aosp12/system/update_engine/payload_generator/ |
H A D | delta_diff_generator.cc | 194 auto thread_count = std::min<int>(diff_utils::GetMaxThreads(), in GenerateUpdatePayloadFile() local 197 thread_count}; in GenerateUpdatePayloadFile()
|
/aosp12/art/runtime/ |
H A D | thread_pool.cc | 252 const size_t thread_count = GetThreadCount(); in GetTask() local 254 const size_t active_threads = thread_count - waiting_count_; in GetTask()
|
/aosp12/frameworks/native/services/vr/performanced/ |
H A D | task.h | 33 size_t thread_count() const { return thread_count_; } in thread_count() function
|
/aosp12/art/openjdkjvmti/ |
H A D | ti_stack.h | 69 jint thread_count,
|
H A D | ti_stack.cc | 516 jint thread_count, in GetThreadListStackTraces() argument 523 if (thread_count < 0) { in GetThreadListStackTraces() 526 if (thread_count == 0) { in GetThreadListStackTraces() 577 for (jint i = 0; i != thread_count; ++i) { in GetThreadListStackTraces() 639 size_t rounded_stack_info_size = art::RoundUp(sizeof(jvmtiStackInfo) * thread_count, in GetThreadListStackTraces() 652 for (size_t i = 0; i < static_cast<size_t>(thread_count); ++i) { in GetThreadListStackTraces()
|
H A D | OpenjdkJvmTi.cc | 311 jint thread_count, in GetThreadListStackTraces() argument 317 thread_count, in GetThreadListStackTraces()
|
/aosp12/frameworks/native/libs/vr/libpdx_default_transport/ |
H A D | pdx_benchmarks.cpp | 528 int thread_count = ProgramOptions.threads; in ServiceCommand() local 529 while (thread_count--) { in ServiceCommand() 602 int thread_count = ProgramOptions.threads; in ClientCommand() local 603 while (thread_count--) { in ClientCommand()
|
/aosp12/packages/modules/adb/ |
H A D | test_device.py | 528 thread_count = 48 530 def hammer(thread_idx, thread_count, result): argument 532 for i in range(thread_idx, 240, thread_count): 540 for i in range(thread_count): 541 thread = threading.Thread(target=hammer, args=(i, thread_count, result))
|
/aosp12/art/openjdkjvmti/include/ |
H A D | jvmti.h | 1521 jint thread_count, 1914 jvmtiError GetThreadListStackTraces(jint thread_count, in GetThreadListStackTraces() 1918 …return functions->GetThreadListStackTraces(this, thread_count, thread_list, max_frame_count, stack… in GetThreadListStackTraces()
|