Searched refs:stack_guard_size (Results 1 – 2 of 2) sorted by relevance
201 ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size) { in __allocate_thread_mapping() argument206 if (__builtin_add_overflow(stack_size, stack_guard_size, &mmap_size)) return {}; in __allocate_thread_mapping()226 const size_t writable_size = mmap_size - stack_guard_size - PTHREAD_GUARD_SIZE; in __allocate_thread_mapping()227 if (mprotect(space + stack_guard_size, in __allocate_thread_mapping()240 result.mmap_base_unguarded = space + stack_guard_size; in __allocate_thread_mapping()241 result.mmap_size_unguarded = mmap_size - stack_guard_size - PTHREAD_GUARD_SIZE; in __allocate_thread_mapping()
184 __LIBC_HIDDEN__ ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size);