Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 44) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Ddeep_stack1.cpp38 size_t stack_size = N * 256 + (1 << 20); in main() local
39 stack_size = RoundUp(stack_size, 0x10000); // round the stack size to 64k in main()
40 int ret = pthread_attr_setstacksize(&a, stack_size); in main()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_fuchsia.cpp117 uptr stack_bottom, stack_size; member
142 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
144 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
175 uptr stack_size) { in BeforeThreadCreateHook() argument
189 const AsanThread::InitOptions options = {stack_bottom, stack_size}; in BeforeThreadCreateHook()
256 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument
259 reinterpret_cast<uptr>(stack_base), stack_size); in __sanitizer_before_thread_create_hook()
H A Dasan_thread.cpp194 uptr AsanThread::stack_size() { in stack_size() function in __asan::AsanThread
202 uptr stack_size = this->stack_size(); in AsyncSignalSafeLazyInitFakeStack() local
203 if (stack_size == 0) // stack_size is not yet available, don't use FakeStack. in AsyncSignalSafeLazyInitFakeStack()
215 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); in AsyncSignalSafeLazyInitFakeStack()
233 CHECK_EQ(this->stack_size(), 0U); in Init()
236 CHECK_GT(this->stack_size(), 0U); in Init()
305 uptr stack_size = 0; in SetThreadStackAndTls() local
306 GetThreadStackAndTls(tid() == kMainTid, &stack_bottom_, &stack_size, in SetThreadStackAndTls()
308 stack_top_ = RoundDownTo(stack_bottom_ + stack_size, ASAN_SHADOW_GRANULARITY); in SetThreadStackAndTls()
H A Dasan_posix.cpp62 uptr default_bottom, tls_addr, tls_size, stack_size; in PlatformUnpoisonStacks() local
63 GetThreadStackAndTls(/*main=*/false, &default_bottom, &stack_size, &tls_addr, in PlatformUnpoisonStacks()
65 UnpoisonStack(default_bottom, default_bottom + stack_size, "default"); in PlatformUnpoisonStacks()
H A Dasan_rtl.cpp552 uptr tls_addr, tls_size, stack_size; in UnpoisonDefaultStack() local
553 GetThreadStackAndTls(/*main=*/false, &bottom, &stack_size, &tls_addr, in UnpoisonDefaultStack()
555 top = bottom + stack_size; in UnpoisonDefaultStack()
/llvm-project-15.0.7/lldb/source/Target/
H A DThreadPlanStack.cpp181 int stack_size = m_plans.size(); in DiscardPlansUpToPlan() local
184 for (int i = stack_size - 1; i > 0; i--) in DiscardPlansUpToPlan()
190 for (int i = stack_size - 1; i > 0; i--) { in DiscardPlansUpToPlan()
209 int stack_size = m_plans.size(); in DiscardAllPlans() local
210 for (int i = stack_size - 1; i > 0; i--) { in DiscardAllPlans()
355 int stack_size = m_completed_plans.size(); in GetPreviousPlan() local
356 for (int i = stack_size - 1; i > 0; i--) { in GetPreviousPlan()
368 stack_size = m_plans.size(); in GetPreviousPlan()
369 for (int i = stack_size - 1; i > 0; i--) { in GetPreviousPlan()
378 int stack_size = m_plans.size(); in GetInnermostExpression() local
[all …]
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_thread.cpp117 uptr MemprofThread::stack_size() { in stack_size() function in __memprof::MemprofThread
123 CHECK_EQ(this->stack_size(), 0U); in Init()
126 CHECK_GT(this->stack_size(), 0U); in Init()
172 uptr stack_size = 0; in SetThreadStackAndTls() local
173 GetThreadStackAndTls(tid() == kMainTid, &stack_bottom_, &stack_size, in SetThreadStackAndTls()
175 stack_top_ = stack_bottom_ + stack_size; in SetThreadStackAndTls()
/llvm-project-15.0.7/compiler-rt/lib/asan/tests/
H A Dasan_fake_stack_test.cpp47 uptr stack_size = 1UL << stack_size_log; in TEST() local
52 uptr num_flags = stack_size / frame_size; in TEST()
94 const uptr stack_size = 1 << stack_size_log; in TEST() local
99 EXPECT_EQ(base + 0*stack_size + 64 * 7, fs->GetFrame(stack_size_log, 0, 7U)); in TEST()
100 EXPECT_EQ(base + 1*stack_size + 128 * 3, fs->GetFrame(stack_size_log, 1, 3U)); in TEST()
101 EXPECT_EQ(base + 2*stack_size + 256 * 5, fs->GetFrame(stack_size_log, 2, 5U)); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp96 uptr stack_size) { in BeforeThreadCreateHook() argument
99 .stack_top = stack_bottom + stack_size, in BeforeThreadCreateHook()
209 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument
212 reinterpret_cast<uptr>(stack_base), stack_size); in __sanitizer_before_thread_create_hook()
H A Dhwasan_thread_list.h160 stats_.total_stack_size += t->stack_size(); in AddThreadStats()
166 stats_.total_stack_size -= t->stack_size(); in RemoveThreadStats()
H A Dhwasan_linux.cpp407 uptr stack_size; in InitStackAndTls() local
408 GetThreadStackAndTls(IsMainThread(), &stack_bottom_, &stack_size, &tls_begin_, in InitStackAndTls()
410 stack_top_ = stack_bottom_ + stack_size; in InitStackAndTls()
/llvm-project-15.0.7/libc/src/__support/threads/
H A Dthread.h85 unsigned long long stack_size; // Size of the stack in alignas() local
96 stack_size(0), tls(0), tls_size(0), owned_stack(false), tid(-1), in alignas()
142 size_t stack_size, bool detached);
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_stats.cpp293 size_t stack_size; in push() local
296 stack_size = timer_stack.size(); in push()
297 current_timer = &(timer_stack[stack_size - 2]); in push()
298 new_timer = &(timer_stack[stack_size - 1]); in push()
311 size_t stack_size = timer_stack.size(); in pop() local
312 KMP_DEBUG_ASSERT(stack_size > 1); in pop()
313 old_timer = &(timer_stack[stack_size - 1]); in pop()
314 new_timer = &(timer_stack[stack_size - 2]); in pop()
327 size_t stack_size; in exchange() local
330 stack_size = timer_stack.size(); in exchange()
[all …]
H A Dkmp_error.cpp68 p->stack_size = (p->stack_size * 2) + 100; in __kmp_expand_cons_stack()
72 (p->stack_size + 1)); in __kmp_expand_cons_stack()
145 p->stack_size = MIN_STACK; in __kmp_allocate_cons_stack()
200 if (p->stack_top >= p->stack_size) { in __kmp_push_parallel()
218 if (p->stack_top >= p->stack_size) { in __kmp_check_workshare()
259 if (p->stack_top >= p->stack_size)
H A Dz_Linux_util.cpp711 void __kmp_create_worker(int gtid, kmp_info_t *th, size_t stack_size) { in __kmp_create_worker() argument
766 stack_size += gtid * __kmp_stkoffset * 2; in __kmp_create_worker()
772 stack_size = (stack_size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1); in __kmp_create_worker()
777 gtid, KMP_DEFAULT_STKSIZE, __kmp_stksize, stack_size)); in __kmp_create_worker()
780 status = pthread_attr_setstacksize(&thread_attr, stack_size); in __kmp_create_worker()
784 stack_size = KMP_BACKUP_STKSIZE + gtid * __kmp_stkoffset; in __kmp_create_worker()
789 gtid, KMP_DEFAULT_STKSIZE, __kmp_stksize, stack_size)); in __kmp_create_worker()
790 status = pthread_attr_setstacksize(&thread_attr, stack_size); in __kmp_create_worker()
795 __kmp_fatal(KMP_MSG(CantSetWorkerStackSize, stack_size), KMP_ERR(status), in __kmp_create_worker()
807 __kmp_fatal(KMP_MSG(CantSetWorkerStackSize, stack_size), KMP_ERR(status), in __kmp_create_worker()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_posix.cpp49 uptr stack_size = 0; in ThreadStart() local
51 GetThreadStackAndTls(tid == kMainTid, &args.stack_begin, &stack_size, in ThreadStart()
53 args.stack_end = args.stack_begin + stack_size; in ThreadStart()
H A Dlsan_fuchsia.cpp95 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument
100 args.stack_end = args.stack_begin + stack_size; in __sanitizer_before_thread_create_hook()
/llvm-project-15.0.7/lldb/tools/compact-unwind/
H A Dcompact-unwind-dumper.c469 uint32_t stack_size = in print_encoding_x86_64() local
487 stack_size += stack_adjust * 8; in print_encoding_x86_64()
494 stack_size * 8, register_count); in print_encoding_x86_64()
497 stack_size, register_count); in print_encoding_x86_64()
586 printf(" CFA is rsp+%d ", stack_size); in print_encoding_x86_64()
588 printf(" CFA is rsp+%d ", stack_size * 8); in print_encoding_x86_64()
685 uint32_t stack_size = in print_encoding_i386() local
703 stack_size += stack_adjust * 4; in print_encoding_i386()
710 stack_size, register_count); in print_encoding_i386()
713 stack_size * 4, register_count); in print_encoding_i386()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_thread.cpp25 uptr stack_size = 0; in SetThreadStackAndTls() local
26 GetThreadStackAndTls(IsMainThread(), &stack_.bottom, &stack_size, &tls_begin_, in SetThreadStackAndTls()
28 stack_.top = stack_.bottom + stack_size; in SetThreadStackAndTls()
/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan_thread.cpp24 uptr stack_size = 0; in SetThreadStackAndTls() local
25 GetThreadStackAndTls(IsMainThread(), &stack_.bottom, &stack_size, &tls_begin_, in SetThreadStackAndTls()
27 stack_.top = stack_.bottom + stack_size; in SetThreadStackAndTls()
/llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/elf-core/gcore/
H A Dmake-core.sh30 stack_size=`ulimit -s`
46 ulimit -s $stack_size
/llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/
H A Dmake-core.sh54 stack_size=`ulimit -s`
64 ulimit -s $stack_size
/llvm-project-15.0.7/lldb/source/Symbol/
H A DCompactUnwindInfo.cpp802 uint32_t stack_size = EXTRACT_BITS(function_info.encoding, in CreateUnwindPlan_x86_64() local
830 stack_size = large_stack_size + (stack_adjust * wordsize); in CreateUnwindPlan_x86_64()
843 ? stack_size in CreateUnwindPlan_x86_64()
844 : stack_size * wordsize; in CreateUnwindPlan_x86_64()
1067 uint32_t stack_size = in CreateUnwindPlan_i386() local
1095 stack_size = large_stack_size + (stack_adjust * wordsize); in CreateUnwindPlan_i386()
1108 mode == UNWIND_X86_MODE_STACK_IND ? stack_size : stack_size * wordsize; in CreateUnwindPlan_i386()
1328 uint32_t stack_size = in CreateUnwindPlan_arm64() local
1334 row->GetCFAValue().SetIsRegisterPlusOffset(arm64_eh_regnum::sp, stack_size); in CreateUnwindPlan_arm64()
/llvm-project-15.0.7/clang/test/CodeGen/
H A D2002-02-14-EntryNodePreds.c25 int stack_size; member
/llvm-project-15.0.7/libc/src/__support/threads/linux/
H A Dthread.cpp88 free_stack(attrib->stack, attrib->stack_size); in cleanup_thread_resources()
180 attrib->stack_size = size; in run()

12