Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread_create.cpp111 if (mprotect(stack_base, PTHREAD_GUARD_SIZE, PROT_NONE) == -1) { in __init_alternate_signal_stack()
116 ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PTHREAD_GUARD_SIZE; in __init_alternate_signal_stack()
117 ss.ss_size = SIGNAL_STACK_SIZE - PTHREAD_GUARD_SIZE; in __init_alternate_signal_stack()
225 if (__builtin_add_overflow(mmap_size, PTHREAD_GUARD_SIZE, &mmap_size)) return {}; in __allocate_thread_mapping()
243 const size_t writable_size = mmap_size - stack_guard_size - PTHREAD_GUARD_SIZE; in __allocate_thread_mapping()
257 result.static_tls = space + mmap_size - PTHREAD_GUARD_SIZE - layout.size(); in __allocate_thread_mapping()
283 mapping = __allocate_thread_mapping(0, PTHREAD_GUARD_SIZE); in __allocate_thread()
Dpthread_internal.h202 #define PTHREAD_GUARD_SIZE PAGE_SIZE macro
223 #define SIGNAL_STACK_SIZE (SIGNAL_STACK_SIZE_WITHOUT_GUARD + PTHREAD_GUARD_SIZE)
D__libc_init_main_thread.cpp121 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()