Searched refs:stack_guard_size (Results 1 – 2 of 2) sorted by relevance
199 ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size) { in __allocate_thread_mapping() argument204 if (__builtin_add_overflow(stack_size, stack_guard_size, &mmap_size)) return {}; in __allocate_thread_mapping()224 const size_t writable_size = mmap_size - stack_guard_size - PTHREAD_GUARD_SIZE; in __allocate_thread_mapping()225 if (mprotect(space + stack_guard_size, in __allocate_thread_mapping()238 result.mmap_base_unguarded = space + stack_guard_size; in __allocate_thread_mapping()239 result.mmap_size_unguarded = mmap_size - stack_guard_size - PTHREAD_GUARD_SIZE; in __allocate_thread_mapping()
179 __LIBC_HIDDEN__ ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size);