Lines Matching refs:guardsize
48 size_t guardsize; /* Guard size. */ member
180 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, in __thr_map_stacks_exec()
183 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, in __thr_map_stacks_exec()
198 size_t guardsize; in _thr_stack_alloc() local
209 guardsize = round_up(attr->guardsize_attr); in _thr_stack_alloc()
224 (guardsize == _thr_guard_default)) { in _thr_stack_alloc()
239 spare_stack->guardsize == guardsize) { 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()
279 (guardsize == 0 || in _thr_stack_alloc()
280 mprotect(stackaddr, guardsize, PROT_NONE) == 0)) { in _thr_stack_alloc()
281 stackaddr += guardsize; in _thr_stack_alloc()
284 munmap(stackaddr, stacksize + guardsize); in _thr_stack_alloc()
307 spare_stack->guardsize = round_up(attr->guardsize_attr); in _thr_stack_free()
311 spare_stack->guardsize == _thr_guard_default) { in _thr_stack_free()