| /freebsd-13.1/lib/libthr/thread/ |
| H A D | thr_stack.c | 47 size_t stacksize; /* Stack size (rounded up). */ member 197 size_t stacksize; in _thr_stack_alloc() local 208 stacksize = round_up(attr->stacksize_attr); in _thr_stack_alloc() 223 if ((stacksize == THR_STACK_DEFAULT) && in _thr_stack_alloc() 238 if (spare_stack->stacksize == stacksize && in _thr_stack_alloc() 260 stackaddr = last_stack - stacksize - guardsize; in _thr_stack_alloc() 269 last_stack -= (stacksize + guardsize); in _thr_stack_alloc() 276 if ((stackaddr = mmap(stackaddr, stacksize + guardsize, in _thr_stack_alloc() 284 munmap(stackaddr, stacksize + guardsize); in _thr_stack_alloc() 306 spare_stack->stacksize = round_up(attr->stacksize_attr); in _thr_stack_free() [all …]
|
| H A D | thr_attr.c | 297 void ** __restrict stackaddr, size_t * __restrict stacksize) in _pthread_attr_getstack() argument 303 || stacksize == NULL ) in _pthread_attr_getstack() 308 *stacksize = (*attr)->stacksize_attr; in _pthread_attr_getstack() 338 size_t * __restrict stacksize) in _thr_attr_getstacksize() argument 343 if (attr == NULL || *attr == NULL || stacksize == NULL) in _thr_attr_getstacksize() 347 *stacksize = (*attr)->stacksize_attr; in _thr_attr_getstacksize() 538 size_t stacksize) in _pthread_attr_setstack() argument 544 || stacksize < PTHREAD_STACK_MIN) in _pthread_attr_setstack() 549 (*attr)->stacksize_attr = stacksize; in _pthread_attr_setstack() 578 _thr_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) in _thr_attr_setstacksize() argument [all …]
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | stack_machdep.c | 51 int ra_stack_pos, stacksize; in stack_capture() local 68 stacksize = 0; in stack_capture() 89 stacksize = -(short)insn.IType.imm; in stack_capture() 102 if (stacksize != 0) in stack_capture() 147 if (pc == ra && stacksize == 0) in stack_capture() 150 sp += stacksize; in stack_capture()
|
| /freebsd-13.1/contrib/ntp/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-13.1/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-13.1/sys/contrib/openzfs/lib/libtpool/ |
| H A D | thread_pool.c | 308 size_t stacksize; in pthread_attr_clone() local 309 error = pthread_attr_getstack(old_attr, &stackaddr, &stacksize); in pthread_attr_clone() 311 error = pthread_attr_setstack(attr, stackaddr, stacksize); in pthread_attr_clone() 327 size_t stacksize; in tpool_create() local 336 if (pthread_attr_getstack(attr, &stackaddr, &stacksize) != 0) { in tpool_create() 346 if (stacksize < minstack || max_threads != 1) { in tpool_create() 350 } else if (stacksize != 0 && stacksize < minstack) { in tpool_create()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix_libcdep.cpp | 397 uptr stacksize = 0; in AdjustStackSize() local 398 my_pthread_attr_getstack(attr, (void**)&stackaddr, &stacksize); in AdjustStackSize() 401 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in AdjustStackSize() 404 if (stacksize < minstacksize) { in AdjustStackSize() 406 if (stacksize != 0) { in AdjustStackSize() 407 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in AdjustStackSize() 413 "%zu < %zu\n", stacksize, minstacksize); in AdjustStackSize()
|
| H A D | sanitizer_linux_libcdep.cpp | 129 uptr stacksize = rl.rlim_cur; in GetThreadStackTopAndBottom() local 130 if (stacksize > segment.end - prev_end) stacksize = segment.end - prev_end; in GetThreadStackTopAndBottom() 134 if (stacksize > kMaxThreadStackSize) in GetThreadStackTopAndBottom() 135 stacksize = kMaxThreadStackSize; in GetThreadStackTopAndBottom() 137 *stack_bottom = segment.end - stacksize; in GetThreadStackTopAndBottom() 140 uptr stacksize = 0; in GetThreadStackTopAndBottom() local 145 stacksize = ss.ss_size; in GetThreadStackTopAndBottom() 146 stackaddr = (char *)ss.ss_sp - stacksize; in GetThreadStackTopAndBottom() 151 my_pthread_attr_getstack(&attr, &stackaddr, &stacksize); in GetThreadStackTopAndBottom() 155 *stack_top = (uptr)stackaddr + stacksize; in GetThreadStackTopAndBottom()
|
| /freebsd-13.1/contrib/unbound/util/ |
| H A D | locks.h | 159 size_t stacksize; \ 161 LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \ 162 if (stacksize < stackrequired) { \ 165 LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \ 166 verbose(VERB_ALGO, "Thread stack size set to %u", (unsigned)stacksize); \
|
| /freebsd-13.1/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-13.1/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 | 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 | error.tab.c | 219 unsigned stacksize; member 267 if ((newsize = data->stacksize) == 0) in yygrowstack() 289 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 | 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 | defines1.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()
|
| 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 | 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 | 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_syntax11.tab.c | 219 unsigned stacksize; member 267 if ((newsize = data->stacksize) == 0) in yygrowstack() 289 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 | 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 | stdin2.calc.c | 228 unsigned stacksize; member 296 if ((newsize = data->stacksize) == 0) in yygrowstack() 318 data->stacksize = newsize; in yygrowstack()
|