Home
last modified time | relevance | path

Searched refs:PTHREAD_GUARD_SIZE (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
Dpthread_create.cpp94 if (mprotect(stack_base, PTHREAD_GUARD_SIZE, PROT_NONE) == -1) { in __init_alternate_signal_stack()
99 ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PTHREAD_GUARD_SIZE; in __init_alternate_signal_stack()
100 ss.ss_size = SIGNAL_STACK_SIZE - PTHREAD_GUARD_SIZE; in __init_alternate_signal_stack()
208 if (__builtin_add_overflow(mmap_size, PTHREAD_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()
241 result.mmap_size_unguarded = mmap_size - stack_guard_size - PTHREAD_GUARD_SIZE; in __allocate_thread_mapping()
242 result.static_tls = space + mmap_size - PTHREAD_GUARD_SIZE - layout.size(); in __allocate_thread_mapping()
268 mapping = __allocate_thread_mapping(0, PTHREAD_GUARD_SIZE); in __allocate_thread()
Dpthread_internal.h223 #define PTHREAD_GUARD_SIZE PAGE_SIZE macro
244 #define SIGNAL_STACK_SIZE (SIGNAL_STACK_SIZE_WITHOUT_GUARD + PTHREAD_GUARD_SIZE)
D__libc_init_main_thread.cpp151 ThreadMapping mapping = __allocate_thread_mapping(0, PTHREAD_GUARD_SIZE); in __libc_init_main_thread_final()
Dpthread_attr.cpp48 attr->guard_size = PTHREAD_GUARD_SIZE; in pthread_attr_init()