/llvm-project/libc/src/__support/threads/linux/ |
H A D | thread.cpp | 84 LIBC_INLINE ErrorOr<void *> alloc_stack(size_t stacksize, size_t guardsize) { in alloc_stack() 88 auto size_or_err = add_no_overflow(stacksize, guardsize); in alloc_stack() 110 SYS_mprotect, mmap_result + guardsize, stacksize, in alloc_stack() 124 free_stack(void *stack, size_t stacksize, size_t guardsize) { in free_stack() 128 LIBC_NAMESPACE::syscall_impl<long>(SYS_munmap, stack, stacksize + guardsize); in free_stack() 153 free_stack(attrib->stack, attrib->stacksize, attrib->guardsize); in cleanup_thread_resources() 199 size_t stacksize, size_t guardsize, bool detached) { in run() 203 // minimum stacksize (like 16384 for pthread). in run() 204 if (stacksize == 0) in run() 205 stacksize in run() 83 alloc_stack(size_t stacksize,size_t guardsize) alloc_stack() argument 123 free_stack(void * stack,size_t stacksize,size_t guardsize) free_stack() argument 198 run(ThreadStyle style,ThreadRunner runner,void * arg,void * stack,size_t stacksize,size_t guardsize,bool detached) run() argument [all...] |
/llvm-project/libc/test/integration/src/pthread/ |
H A D | pthread_create_test.cpp | 95 ASSERT_EQ(thread->attrib->stacksize, expec_stacksize); in successThread() 137 size_t stacksize, bool customstack) { in run_success_config() argument 153 Stack = LIBC_NAMESPACE::mmap(nullptr, stacksize, PROT_READ | PROT_WRITE, in run_success_config() 159 ASSERT_EQ(LIBC_NAMESPACE::pthread_attr_setstack(attr, Stack, stacksize), 0); in run_success_config() 162 ASSERT_EQ(LIBC_NAMESPACE::pthread_attr_setstacksize(attr, stacksize), 0); in run_success_config() 190 ASSERT_EQ(LIBC_NAMESPACE::munmap(Stack, stacksize), 0); in run_success_config() 217 for (size_t stacksize : stacksizes) { in run_success_tests() local 236 run_success_config(detachstate, guardsize, stacksize, customstack); in run_success_tests() 269 static void run_failure_config(size_t guardsize, size_t stacksize) { in run_failure_config() argument 278 ASSERT_EQ(LIBC_NAMESPACE::pthread_attr_setstacksize(&attr, stacksize), 0); in run_failure_config()
|
/llvm-project/libc/src/pthread/ |
H A D | pthread_create.cpp | 45 size_t stacksize, guardsize; 50 LIBC_NAMESPACE::pthread_attr_getstack(attr, &stack, &stacksize) != 0)) 67 if (stacksize && stacksize < PTHREAD_STACK_MIN) 81 int result = thread->run(func, arg, stack, stacksize, guardsize, 44 size_t stacksize, guardsize; global() variable
|
H A D | pthread_attr_setstack.cpp | 24 size_t stacksize)) { 26 // TODO: Do we need to check for overflow on stackaddr + stacksize? 28 ((stackaddr + stacksize) % STACK_ALIGNMENT != 0)) 31 if (stacksize < PTHREAD_STACK_MIN) 35 attr->__stacksize = stacksize;
|
H A D | pthread_attr_setstacksize.cpp | 20 (pthread_attr_t *__restrict attr, size_t stacksize)) { 21 // TODO: Should we also ensure stacksize % EXEC_PAGESIZE == 0? 22 if (stacksize < PTHREAD_STACK_MIN) 25 attr->__stacksize = stacksize;
|
H A D | pthread_attr_getstacksize.cpp | 20 size_t *__restrict stacksize)) { 21 *stacksize = attr->__stacksize;
|
H A D | pthread_attr_getstack.cpp | 22 void **__restrict stack, size_t *__restrict stacksize)) { 24 int result = LIBC_NAMESPACE::pthread_attr_getstacksize(attr, stacksize);
|
H A D | pthread_attr_setstacksize.h | 17 int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);
|
H A D | pthread_attr_setstack.h | 17 int pthread_attr_setstack(pthread_attr_t *attr, void *stack, size_t stacksize);
|
H A D | pthread_attr_getstacksize.h | 18 size_t *__restrict stacksize);
|
H A D | pthread_attr_getstack.h | 19 size_t *__restrict stacksize);
|
/llvm-project/libc/test/src/pthread/ |
H A D | pthread_attr_test.cpp | 83 size_t stacksize; in TEST() local 87 ASSERT_EQ(LIBC_NAMESPACE::pthread_attr_getstacksize(&attr, &stacksize), 0); in TEST() 88 ASSERT_EQ(stacksize, size_t(PTHREAD_STACK_MIN << 2)); in TEST() 102 size_t stacksize; in TEST() local 106 ASSERT_EQ(LIBC_NAMESPACE::pthread_attr_getstack(&attr, &stack, &stacksize), in TEST() 108 ASSERT_EQ(stacksize, size_t(PTHREAD_STACK_MIN << 2)); in TEST()
|
/llvm-project/libc/src/__support/threads/ |
H A D | thread.h | 102 size_t stacksize; // Size of the stack 115 stacksize(0), guardsize(0), tls(0), tls_size(0), owned_stack(false), in ThreadAttributes() 145 // NB: Default stacksize of 64kb is exceedingly small compared to the 2mb norm 157 size_t stacksize = DEFAULT_STACKSIZE, 162 return run(ThreadStyle::POSIX, runner, arg, stack, stacksize, guardsize, 167 size_t stacksize = DEFAULT_STACKSIZE, 172 return run(ThreadStyle::STDC, runner, arg, stack, stacksize, guardsize, 200 size_t stacksize, size_t guardsize, bool detached); 100 unsigned long long stacksize; // Size of the stack global() member
|
/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_posix_libcdep.cpp | 480 uptr stacksize = 0; in StartSubprocess() 481 internal_pthread_attr_getstack(attr, (void **)&stackaddr, &stacksize); in StartSubprocess() 482 // GLibC will return (0 - stacksize) as the stack address in the case when in StartSubprocess() 483 // stacksize is set, but stackaddr is not. in StartSubprocess() 484 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in StartSubprocess() 487 if (stacksize < minstacksize) { in StartSubprocess() 489 if (stacksize != 0) { in StartSubprocess() 490 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in StartSubprocess() 496 "%zu < %zu\n", stacksize, minstacksiz in IsProcessRunning() 419 uptr stacksize = 0; AdjustStackSize() local [all...] |
H A D | sanitizer_linux_libcdep.cpp | 130 // Get stacksize from rlimit, but clip it so that it does not overlap in GetThreadStackTopAndBottom() 132 uptr stacksize = rl.rlim_cur; in GetThreadStackTopAndBottom() 133 if (stacksize > segment.end - prev_end) in GetThreadStackTopAndBottom() 134 stacksize = segment.end - prev_end; in GetThreadStackTopAndBottom() 138 if (stacksize > kMaxThreadStackSize) in GetThreadStackTopAndBottom() 139 stacksize = kMaxThreadStackSize; in GetThreadStackTopAndBottom() 141 *stack_bottom = segment.end - stacksize; in GetThreadStackTopAndBottom() 157 uptr stacksize = 0; in GetThreadStackTopAndBottom() 162 stacksize = ss.ss_size; in GetThreadStackTopAndBottom() 163 stackaddr = (char *)ss.ss_sp - stacksize; in GetThreadStackTopAndBottom() 142 uptr stacksize = rl.rlim_cur; GetThreadStackTopAndBottom() local 154 uptr stacksize = 0; GetThreadStackTopAndBottom() local [all...] |
H A D | sanitizer_mac.cpp | 414 uptr stacksize = pthread_get_stacksize_np(pthread_self()); in GetThreadStackTopAndBottom() local 419 stacksize == (1 << 19)) { in GetThreadStackTopAndBottom() 424 stacksize = rl.rlim_cur; in GetThreadStackTopAndBottom() 426 stacksize = kMaxThreadStackSize; in GetThreadStackTopAndBottom() 431 *stack_bottom = *stack_top - stacksize; in GetThreadStackTopAndBottom()
|
/llvm-project/llvm/test/Transforms/Inline/ |
H A D | inline-stacksize.ll | 3 ; RUN: opt < %s -passes=inline -S -inline-max-stacksize=256 | FileCheck --check-prefixes=ALL,LIMITE… 53 attributes #0 = { "inline-max-stacksize"="256" } 54 attributes #1 = { "inline-max-stacksize"="512" }
|
H A D | inline-recur-stacksize.ll | 3 ; RUN: opt < %s -passes=inline -S -recursive-inline-max-stacksize=256 | FileCheck --check-prefixes=…
|
/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_linux_test.cpp | 198 size_t stacksize; in thread_descriptor_size_test_func() 199 pthread_attr_getstack(&attr, &stackaddr, &stacksize); in thread_descriptor_size_test_func() 200 return (void *)((uptr)stackaddr + stacksize - descr_addr); in thread_descriptor_size_test_func() 197 size_t stacksize; thread_descriptor_size_test_func() local
|
/llvm-project/lld/MachO/ |
H A D | MachOStructs.h | 42 llvm::support::ulittle64_t stacksize; member
|
/llvm-project/llvm/test/CodeGen/X86/ |
H A D | tailcc-stackalign.ll | 18 ; expect match subl [stacksize] here
|
H A D | tailcall-stackalign.ll | 18 ; expect match subl [stacksize] here
|
/llvm-project/llvm/test/tools/llvm-objcopy/MachO/ |
H A D | segment-size-alignment.test | 172 stacksize: 0 389 stacksize: 0 606 stacksize: 0 823 stacksize: 0
|
/llvm-project/clang/test/Analysis/Inputs/ |
H A D | std-c-library-functions-POSIX.h | 190 int pthread_attr_getstacksize(const pthread_attr_t *restrict attr, size_t *restrict stacksize); 192 int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);
|
/llvm-project/llvm/test/tools/llvm-objdump/MachO/ |
H A D | exports-trie-lc.test | 135 stacksize: 0
|