Searched refs:guardsize (Results 1 – 4 of 4) sorted by relevance
| /freebsd/contrib/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() argument 87 int prot = guardsize ? PROT_NONE : PROT_READ | PROT_WRITE; in alloc_stack() 88 auto size_or_err = add_no_overflow(stacksize, guardsize); in alloc_stack() 106 if (guardsize) { in alloc_stack() 110 SYS_mprotect, mmap_result + guardsize, stacksize, in alloc_stack() 116 mmap_result += guardsize; in alloc_stack() 124 free_stack(void *stack, size_t stacksize, size_t guardsize) { in free_stack() argument 126 stackaddr -= 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() [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/threads/ |
| H A D | thread.h | 103 size_t guardsize; // Guard size on stack member 115 stacksize(0), guardsize(0), tls(0), tls_size(0), owned_stack(false), in ThreadAttributes() 158 size_t guardsize = DEFAULT_GUARDSIZE, 162 return run(ThreadStyle::POSIX, runner, arg, stack, stacksize, guardsize, 168 size_t guardsize = DEFAULT_GUARDSIZE, 172 return run(ThreadStyle::STDC, runner, arg, stack, stacksize, guardsize, 200 size_t stacksize, size_t guardsize, bool detached);
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_attr.c | 202 size_t * __restrict guardsize) in _thr_attr_getguardsize() argument 205 if (attr == NULL || *attr == NULL || guardsize == NULL) in _thr_attr_getguardsize() 208 *guardsize = (*attr)->guardsize_attr; in _thr_attr_getguardsize() 373 _thr_attr_setguardsize(pthread_attr_t *attr, size_t guardsize) in _thr_attr_setguardsize() argument 379 (*attr)->guardsize_attr = guardsize; in _thr_attr_setguardsize()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 4943 INTERCEPTOR_PTHREAD_ATTR_GET(guardsize, sizeof(SIZE_T))
|