| /openbsd-src/lib/librthread/ |
| H A D | rthread_stack.c | 35 thread->attr.stack_size == RTHREAD_STACK_SIZE_DEF && in _rthread_alloc_stack() 53 if (thread->attr.stack_size > _thread_pagesize) in _rthread_alloc_stack() 55 else if (thread->attr.stack_size == _thread_pagesize) in _rthread_alloc_stack() 64 stack->len = thread->attr.stack_size; in _rthread_alloc_stack() 68 stack->sp = base + thread->attr.stack_size - (_STACKALIGNBYTES+1) - rnd; in _rthread_alloc_stack() 80 size = ROUND_TO_PAGE(thread->attr.stack_size); in _rthread_alloc_stack() 84 if (size < thread->attr.stack_size || in _rthread_alloc_stack()
|
| H A D | rthread_attr.c | 115 *stacksize = (*attrp)->stack_size; in pthread_attr_getstack() 174 (*attrp)->stack_size = stacksize; in pthread_attr_setstack() 182 *stacksize = (*attrp)->stack_size; in pthread_attr_getstacksize() 196 (*attrp)->stack_size = stacksize; in pthread_attr_setstacksize()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/asan/ |
| H A D | asan_fuchsia.cpp | 117 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 D | asan_thread.cpp | 194 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 D | asan_posix.cpp | 62 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()
|
| /openbsd-src/gnu/llvm/lldb/source/Target/ |
| H A D | ThreadPlanStack.cpp | 181 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() 199 for (int i = stack_size - 1; i > 0 && !last_one; 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() 363 if (stack_size > 0 && m_completed_plans[0].get() == current_plan) { in GetPreviousPlan() 368 stack_size = m_plans.size(); in GetPreviousPlan() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/threads/ |
| H A D | threads.xs | 98 IV stack_size; 439 S_good_stack_size(pTHX_ IV stack_size) 444 if (! stack_size) { 450 if (stack_size < PTHREAD_STACK_MIN) { 491 stack_size = ((stack_size + (MY_POOL.page_size - 1)) / MY_POOL.page_size) * MY_POOL.page_size; in S_good_stack_size() 493 return (stack_size); in S_good_stack_size() 763 IV stack_size, argument 829 thread->stack_size = S_good_stack_size(aTHX_ stack_size); 110 IV stack_size; global() member 454 S_good_stack_size(pTHX_ IV stack_size) S_good_stack_size() argument 1080 IV stack_size; global() variable [all...] |
| /openbsd-src/gnu/llvm/compiler-rt/lib/memprof/ |
| H A D | memprof_thread.cpp | 117 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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/asan/tests/ |
| H A D | asan_fake_stack_test.cpp | 47 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()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | mn10300-tdep.c | 80 int stack_size; member 195 get_frame_extra_info (dummy)->stack_size = 0; in analyze_dummy_frame() 335 fix_frame_pointer (struct frame_info *fi, int stack_size) in fix_frame_pointer() argument 340 deprecated_update_frame_base_hack (fi, read_sp () - stack_size); in fix_frame_pointer() 521 CORE_ADDR stack_size; in mn10300_analyze_prologue() local 736 stack_size = extract_signed_integer (buf, imm_size); in mn10300_analyze_prologue() 738 get_frame_extra_info (fi)->stack_size = stack_size; in mn10300_analyze_prologue() 745 fix_frame_pointer (fi, stack_size); in mn10300_analyze_prologue() 844 return get_frame_base (fi) + adjust + -get_frame_extra_info (dummy)->stack_size; in mn10300_frame_chain() 1048 get_frame_extra_info (fi)->stack_size = 0; in mn10300_init_extra_frame_info() [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | ipa.c | 34 int stack_size = 0; in cgraph_postorder() local 70 stack[stack_size++] = node2; in cgraph_postorder() 78 if (stack_size) in cgraph_postorder() 79 node2 = stack[--stack_size]; in cgraph_postorder()
|
| H A D | ipa-utils.c | 67 int stack_size; member 98 env->stack[(env->stack_size)++] = v; in searchc() 134 x = env->stack[--(env->stack_size)]; in searchc() 165 env.stack_size = 0; in ipa_utils_reduced_inorder()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/ |
| H A D | hwasan_fuchsia.cpp | 96 uptr stack_size) { in BeforeThreadCreateHook() argument 99 .stack_top = stack_bottom + stack_size, in BeforeThreadCreateHook() 217 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument 220 reinterpret_cast<uptr>(stack_base), stack_size); in __sanitizer_before_thread_create_hook()
|
| H A D | hwasan_thread_list.h | 171 stats_.total_stack_size += t->stack_size(); in AddThreadStats() 177 stats_.total_stack_size -= t->stack_size(); in RemoveThreadStats()
|
| H A D | hwasan_linux.cpp | 501 uptr stack_size; in InitStackAndTls() local 502 GetThreadStackAndTls(IsMainThread(), &stack_bottom_, &stack_size, &tls_begin_, in InitStackAndTls() 504 stack_top_ = stack_bottom_ + stack_size; in InitStackAndTls()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/lsan/ |
| H A D | lsan_posix.cpp | 50 uptr stack_size = 0; in ThreadStart() local 52 GetThreadStackAndTls(tid == kMainTid, &args.stack_begin, &stack_size, in ThreadStart() 54 args.stack_end = args.stack_begin + stack_size; in ThreadStart()
|
| H A D | lsan_fuchsia.cpp | 95 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()
|
| /openbsd-src/gnu/llvm/lldb/tools/compact-unwind/ |
| H A D | compact-unwind-dumper.c | 469 uint32_t stack_size = in print_encoding_x86_64() local 485 stack_size = *((uint32_t *)(function_start + offset_to_subl_insn)); in print_encoding_x86_64() 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 701 stack_size = *((uint32_t *)(function_start + offset_to_subl_insn)); in print_encoding_i386() 703 stack_size += stack_adjust * 4; in print_encoding_i386() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/ |
| H A D | dfsan_thread.cpp | 25 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()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/osf-share/ |
| H A D | cma_attr.h | 178 _int_att_->stack_size = cma__roundup_chunksize(_setting_); \ 215 (*(_setting_)) = (_int_att_)->stack_size; \ 311 cma_t_natural stack_size; /* Size of stack (bytes) */ member
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/ |
| H A D | msan_thread.cpp | 24 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()
|
| /openbsd-src/gnu/llvm/lldb/source/Symbol/ |
| H A D | CompactUnwindInfo.cpp | 801 uint32_t stack_size = EXTRACT_BITS(function_info.encoding, in CreateUnwindPlan_x86_64() local 829 stack_size = large_stack_size + (stack_adjust * wordsize); in CreateUnwindPlan_x86_64() 842 ? stack_size in CreateUnwindPlan_x86_64() 843 : stack_size * wordsize; in CreateUnwindPlan_x86_64() 1066 uint32_t stack_size = in CreateUnwindPlan_i386() local 1094 stack_size = large_stack_size + (stack_adjust * wordsize); in CreateUnwindPlan_i386() 1107 mode == UNWIND_X86_MODE_STACK_IND ? stack_size : stack_size * wordsize; in CreateUnwindPlan_i386() 1327 uint32_t stack_size = in CreateUnwindPlan_arm64() local 1333 row->GetCFAValue().SetIsRegisterPlusOffset(arm64_eh_regnum::sp, stack_size); in CreateUnwindPlan_arm64()
|
| /openbsd-src/regress/lib/libc/sys/ |
| H A D | t_fork.c | 279 const size_t stack_size = 1024 * 1024; in nested_raw() local 282 stack = malloc(stack_size); in nested_raw() 288 stack_base = (char *)stack + stack_size; in nested_raw()
|
| /openbsd-src/gnu/usr.bin/perl/t/ |
| H A D | thread_it.pl | 36 stack_size => $^O eq 'hpux' ? 524288 :
|
| /openbsd-src/usr.bin/dc/ |
| H A D | extern.h | 47 size_t stack_size(const struct stack *);
|