Lines Matching refs:guardsize
47 size_t guardsize; /* Guard size. */ member
168 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, in __thr_map_stacks_exec()
171 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, in __thr_map_stacks_exec()
186 size_t guardsize; in _thr_stack_alloc() local
197 guardsize = round_up(attr->guardsize_attr); in _thr_stack_alloc()
212 (guardsize == _thr_guard_default)) { in _thr_stack_alloc()
227 spare_stack->guardsize == guardsize) { in _thr_stack_alloc()
248 stackaddr = last_stack - stacksize - guardsize; in _thr_stack_alloc()
257 last_stack -= (stacksize + guardsize); in _thr_stack_alloc()
264 if ((stackaddr = mmap(stackaddr, stacksize + guardsize, in _thr_stack_alloc()
267 (guardsize == 0 || in _thr_stack_alloc()
268 mprotect(stackaddr, guardsize, PROT_NONE) == 0)) { in _thr_stack_alloc()
269 stackaddr += guardsize; in _thr_stack_alloc()
272 munmap(stackaddr, stacksize + guardsize); in _thr_stack_alloc()
295 spare_stack->guardsize = round_up(attr->guardsize_attr); in _thr_stack_free()
299 spare_stack->guardsize == _thr_guard_default) { in _thr_stack_free()