Home
last modified time | relevance | path

Searched refs:stacksize (Results 1 – 25 of 115) sorted by relevance

12345

/freebsd-12.1/lib/libthr/thread/
H A Dthr_stack.c47 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 Dthr_attr.c297 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-12.1/sys/mips/mips/
H A Dstack_machdep.c55 u_register_t ra = 0, i, stacksize; in stack_capture() local
62 stacksize = 0; in stack_capture()
74 stacksize = -(short)insn.IType.imm; in stack_capture()
87 if (stacksize) in stack_capture()
119 if (pc == ra && stacksize == 0) in stack_capture()
122 sp += stacksize; in stack_capture()
/freebsd-12.1/release/picobsd/mfs_tree/etc/
H A Dlogin.conf27 :stacksize-cur=8M:\
49 :stacksize=2M:\
82 :stacksize=infinity:\
110 :stacksize=16M:\
111 :stacksize-cur@:\
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_libcdep.cc117 uptr stacksize = rl.rlim_cur; in GetThreadStackTopAndBottom() local
118 if (stacksize > segment.end - prev_end) stacksize = segment.end - prev_end; in GetThreadStackTopAndBottom()
122 if (stacksize > kMaxThreadStackSize) in GetThreadStackTopAndBottom()
123 stacksize = kMaxThreadStackSize; in GetThreadStackTopAndBottom()
125 *stack_bottom = segment.end - stacksize; in GetThreadStackTopAndBottom()
128 uptr stacksize = 0; in GetThreadStackTopAndBottom() local
133 stacksize = ss.ss_size; in GetThreadStackTopAndBottom()
134 stackaddr = (char *)ss.ss_sp - stacksize; in GetThreadStackTopAndBottom()
139 stacksize = sattr.ss_size; in GetThreadStackTopAndBottom()
144 my_pthread_attr_getstack(&attr, &stackaddr, &stacksize); in GetThreadStackTopAndBottom()
[all …]
H A Dsanitizer_posix_libcdep.cc420 uptr stacksize = 0; in AdjustStackSize() local
421 my_pthread_attr_getstack(attr, (void**)&stackaddr, &stacksize); in AdjustStackSize()
424 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in AdjustStackSize()
427 if (stacksize < minstacksize) { in AdjustStackSize()
429 if (stacksize != 0) { in AdjustStackSize()
430 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in AdjustStackSize()
436 "%zu < %zu\n", stacksize, minstacksize); in AdjustStackSize()
/freebsd-12.1/contrib/ntp/lib/isc/pthreads/
H A Dthread.c36 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-12.1/contrib/gcclibs/libgomp/
H A Denv.c276 unsigned long stacksize; in initialize_env() local
293 if (parse_unsigned_long ("GOMP_STACKSIZE", &stacksize)) in initialize_env()
297 stacksize *= 1024; in initialize_env()
298 err = pthread_attr_setstacksize (&gomp_thread_attr, stacksize); in initialize_env()
303 if (stacksize < PTHREAD_STACK_MIN) in initialize_env()
H A Dteam.c272 size_t stacksize; in gomp_team_start() local
275 if (! pthread_attr_getstacksize (&gomp_thread_attr, &stacksize)) in gomp_team_start()
276 pthread_attr_setstacksize (&thread_attr, stacksize); in gomp_team_start()
/freebsd-12.1/contrib/netbsd-tests/lib/libpthread/
H A Dt_join.c151 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-12.1/contrib/unbound/util/
H A Dlocks.h159 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-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlstate.c135 L1->stacksize = BASIC_STACK_SIZE; in stack_init()
139 L1->stack_last = L1->stack + L1->stacksize - EXTRA_STACK; in stack_init()
156 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ in freestack()
206 L->stacksize = 0; in preinit_state()
H A Dldo.c173 int lim = L->stacksize; in luaD_reallocstack()
175 lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK); in luaD_reallocstack()
176 luaM_reallocvector(L, L->stack, L->stacksize, newsize, TValue); in luaD_reallocstack()
179 L->stacksize = newsize; in luaD_reallocstack()
186 int size = L->stacksize; in luaD_growstack()
220 goodsize >= L->stacksize) /* would grow instead of shrink? */ in luaD_shrinkstack()
/freebsd-12.1/contrib/lua/src/
H A Dlstate.c155 L1->stacksize = BASIC_STACK_SIZE; in stack_init()
159 L1->stack_last = L1->stack + L1->stacksize - EXTRA_STACK; in stack_init()
177 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ in freestack()
226 L->stacksize = 0; in preinit_thread()
H A Dldo.c179 int lim = L->stacksize; in luaD_reallocstack()
181 lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK); in luaD_reallocstack()
182 luaM_reallocvector(L, L->stack, L->stacksize, newsize, TValue); in luaD_reallocstack()
185 L->stacksize = newsize; in luaD_reallocstack()
192 int size = L->stacksize; in luaD_growstack()
226 if (L->stacksize > LUAI_MAXSTACK) /* had been handling stack overflow? */ in luaD_shrinkstack()
233 goodsize < L->stacksize) in luaD_shrinkstack()
/freebsd-12.1/contrib/byacc/test/yacc/
H A Drename_debug.c93 unsigned stacksize; member
145 if ((newsize = data->stacksize) == 0) in yygrowstack()
167 data->stacksize = newsize; in yygrowstack()
H A Dpure_error.tab.c224 unsigned stacksize; member
274 if ((newsize = data->stacksize) == 0) in yygrowstack()
296 data->stacksize = newsize; in yygrowstack()
H A Derr_syntax20.tab.c215 unsigned stacksize; member
263 if ((newsize = data->stacksize) == 0) in yygrowstack()
285 data->stacksize = newsize; in yygrowstack()
H A Derr_syntax18.tab.c219 unsigned stacksize; member
267 if ((newsize = data->stacksize) == 0) in yygrowstack()
289 data->stacksize = newsize; in yygrowstack()
H A Derror.tab.c217 unsigned stacksize; member
265 if ((newsize = data->stacksize) == 0) in yygrowstack()
287 data->stacksize = newsize; in yygrowstack()
H A Derr_syntax10.tab.c211 unsigned stacksize; member
259 if ((newsize = data->stacksize) == 0) in yygrowstack()
281 data->stacksize = newsize; in yygrowstack()
H A Dempty.tab.c221 unsigned stacksize; member
260 if ((newsize = data->stacksize) == 0) in yygrowstack()
282 data->stacksize = newsize; in yygrowstack()
H A Dcode_error.code.c197 unsigned stacksize; member
249 if ((newsize = data->stacksize) == 0) in yygrowstack()
271 data->stacksize = newsize; in yygrowstack()
H A Derr_syntax11.tab.c217 unsigned stacksize; member
265 if ((newsize = data->stacksize) == 0) in yygrowstack()
287 data->stacksize = newsize; in yygrowstack()
H A Derr_syntax12.tab.c223 unsigned stacksize; member
271 if ((newsize = data->stacksize) == 0) in yygrowstack()
293 data->stacksize = newsize; in yygrowstack()

12345