| /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 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() argument 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() argument 204 if (stacksize == 0) in run() 205 stacksize = DEFAULT_STACKSIZE; in run() 214 round_or_err = round_to_page(stacksize); in run() [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/threads/ |
| H A D | thread.h | 102 size_t stacksize; // Size of the stack member 115 stacksize(0), guardsize(0), tls(0), tls_size(0), owned_stack(false), in ThreadAttributes() 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);
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_attr.c | 277 void ** __restrict stackaddr, size_t * __restrict stacksize) in _pthread_attr_getstack() argument 281 stacksize == NULL) in _pthread_attr_getstack() 285 *stacksize = (*attr)->stacksize_attr; in _pthread_attr_getstack() 308 size_t * __restrict stacksize) in _thr_attr_getstacksize() argument 311 if (attr == NULL || *attr == NULL || stacksize == NULL) in _thr_attr_getstacksize() 314 *stacksize = (*attr)->stacksize_attr; in _thr_attr_getstacksize() 469 size_t stacksize) in _pthread_attr_setstack() argument 473 stacksize < PTHREAD_STACK_MIN) in _pthread_attr_setstack() 477 (*attr)->stacksize_attr = stacksize; in _pthread_attr_setstack() 499 _thr_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) in _thr_attr_setstacksize() argument [all …]
|
| /freebsd/contrib/ntp/libntp/lib/isc/pthreads/ |
| H A D | thread.c | 36 size_t stacksize; in isc_thread_create() local 43 ret = pthread_attr_getstacksize(&attr, &stacksize); in isc_thread_create() 47 if (stacksize < THREAD_MINSTACKSIZE) { in isc_thread_create()
|
| /freebsd/contrib/netbsd-tests/lib/libpthread/ |
| H A D | t_join.c | 151 size_t stacksize; in threadfunc2() local 159 ATF_REQUIRE(pthread_attr_getstacksize(&attr, &stacksize) == 0); in threadfunc2() 160 ATF_REQUIRE(stacksize == STACKSIZE * (j + 1)); in threadfunc2()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix_libcdep.cpp | 480 uptr stacksize = 0; in AdjustStackSize() local 481 internal_pthread_attr_getstack(attr, (void **)&stackaddr, &stacksize); in AdjustStackSize() 484 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in AdjustStackSize() 487 if (stacksize < minstacksize) { in AdjustStackSize() 489 if (stacksize != 0) { in AdjustStackSize() 490 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in AdjustStackSize() 496 "%zu < %zu\n", stacksize, minstacksize); in AdjustStackSize()
|
| H A D | sanitizer_linux_libcdep.cpp | 149 uptr stacksize = rl.rlim_cur; in GetThreadStackTopAndBottom() local 150 if (stacksize > segment.end - prev_end) in GetThreadStackTopAndBottom() 151 stacksize = segment.end - prev_end; in GetThreadStackTopAndBottom() 155 if (stacksize > kMaxThreadStackSize) in GetThreadStackTopAndBottom() 156 stacksize = kMaxThreadStackSize; in GetThreadStackTopAndBottom() 158 *stack_bottom = segment.end - stacksize; in GetThreadStackTopAndBottom() 174 uptr stacksize = 0; in GetThreadStackTopAndBottom() local 179 stacksize = ss.ss_size; in GetThreadStackTopAndBottom() 180 stackaddr = (char *)ss.ss_sp - stacksize; in GetThreadStackTopAndBottom() 185 internal_pthread_attr_getstack(&attr, &stackaddr, &stacksize); in GetThreadStackTopAndBottom() [all …]
|
| /freebsd/contrib/unbound/util/ |
| H A D | locks.h | 160 size_t stacksize; \ 162 LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \ 163 if (stacksize < stackrequired) { \ 166 LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \ 167 verbose(VERB_ALGO, "Thread stack size set to %u", (unsigned)stacksize); \
|
| /freebsd/sys/contrib/openzfs/module/lua/ |
| H A D | lstate.c | 134 L1->stacksize = BASIC_STACK_SIZE; in stack_init() 138 L1->stack_last = L1->stack + L1->stacksize - EXTRA_STACK; in stack_init() 155 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ in freestack() 205 L->stacksize = 0; in preinit_state()
|
| /freebsd/contrib/byacc/test/yacc/ |
| H A D | rename_debug.c | 95 unsigned stacksize; member 147 if ((newsize = data->stacksize) == 0) in yygrowstack() 169 data->stacksize = newsize; in yygrowstack()
|
| H A D | code_error.code.c | 199 unsigned stacksize; member 251 if ((newsize = data->stacksize) == 0) in yygrowstack() 273 data->stacksize = newsize; in yygrowstack()
|
| H A D | empty.tab.c | 223 unsigned stacksize; member 262 if ((newsize = data->stacksize) == 0) in yygrowstack() 284 data->stacksize = newsize; in yygrowstack()
|
| H A D | err_syntax10.tab.c | 213 unsigned stacksize; member 261 if ((newsize = data->stacksize) == 0) in yygrowstack() 283 data->stacksize = newsize; in yygrowstack()
|
| H A D | err_syntax11.tab.c | 219 unsigned stacksize; member 267 if ((newsize = data->stacksize) == 0) in yygrowstack() 289 data->stacksize = newsize; in yygrowstack()
|
| H A D | error.tab.c | 219 unsigned stacksize; member 267 if ((newsize = data->stacksize) == 0) in yygrowstack() 289 data->stacksize = newsize; in yygrowstack()
|
| H A D | pure_error.tab.c | 225 unsigned stacksize; member 275 if ((newsize = data->stacksize) == 0) in yygrowstack() 297 data->stacksize = newsize; in yygrowstack()
|
| H A D | err_syntax12.tab.c | 225 unsigned stacksize; member 273 if ((newsize = data->stacksize) == 0) in yygrowstack() 295 data->stacksize = newsize; in yygrowstack()
|
| H A D | err_syntax18.tab.c | 221 unsigned stacksize; member 269 if ((newsize = data->stacksize) == 0) in yygrowstack() 291 data->stacksize = newsize; in yygrowstack()
|
| H A D | err_syntax20.tab.c | 217 unsigned stacksize; member 265 if ((newsize = data->stacksize) == 0) in yygrowstack() 287 data->stacksize = newsize; in yygrowstack()
|
| H A D | stdin1.calc.c | 228 unsigned stacksize; member 296 if ((newsize = data->stacksize) == 0) in yygrowstack() 318 data->stacksize = newsize; in yygrowstack()
|
| H A D | stdin2.calc.c | 228 unsigned stacksize; member 296 if ((newsize = data->stacksize) == 0) in yygrowstack() 318 data->stacksize = newsize; in yygrowstack()
|
| H A D | defines1.calc.c | 228 unsigned stacksize; member 296 if ((newsize = data->stacksize) == 0) in yygrowstack() 318 data->stacksize = newsize; in yygrowstack()
|
| H A D | defines2.calc.c | 228 unsigned stacksize; member 296 if ((newsize = data->stacksize) == 0) in yygrowstack() 318 data->stacksize = newsize; in yygrowstack()
|
| H A D | defines3.calc.c | 228 unsigned stacksize; member 296 if ((newsize = data->stacksize) == 0) in yygrowstack() 318 data->stacksize = newsize; in yygrowstack()
|
| /freebsd/contrib/llvm-project/lld/MachO/ |
| H A D | MachOStructs.h | 42 llvm::support::ulittle64_t stacksize; member
|