Home
last modified time | relevance | path

Searched refs:stack_guard_size (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/bionic/
Dpthread_create.cpp201 ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size) { in __allocate_thread_mapping() argument
206 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()
Dpthread_internal.h184 __LIBC_HIDDEN__ ThreadMapping __allocate_thread_mapping(size_t stack_size, size_t stack_guard_size);