Lines Matching refs:guardsize
46 size_t guardsize; /* Guard size. */ member
167 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, in __thr_map_stacks_exec()
170 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, in __thr_map_stacks_exec()
185 size_t guardsize; in _thr_stack_alloc() local
196 guardsize = round_up(attr->guardsize_attr); in _thr_stack_alloc()
211 (guardsize == _thr_guard_default)) { in _thr_stack_alloc()
226 spare_stack->guardsize == guardsize) { in _thr_stack_alloc()
247 stackaddr = last_stack - stacksize - guardsize; in _thr_stack_alloc()
256 last_stack -= (stacksize + guardsize); in _thr_stack_alloc()
263 if ((stackaddr = mmap(stackaddr, stacksize + guardsize, in _thr_stack_alloc()
266 (guardsize == 0 || in _thr_stack_alloc()
267 mprotect(stackaddr, guardsize, PROT_NONE) == 0)) { in _thr_stack_alloc()
268 stackaddr += guardsize; in _thr_stack_alloc()
271 munmap(stackaddr, stacksize + guardsize); in _thr_stack_alloc()
294 spare_stack->guardsize = round_up(attr->guardsize_attr); in _thr_stack_free()
298 spare_stack->guardsize == _thr_guard_default) { in _thr_stack_free()