Home
last modified time | relevance | path

Searched refs:mmap_size (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dpthread_create.cpp56 if (thread->mmap_size == 0) { in __init_tls()
121 static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_size) { in __create_thread_mapped_space() argument
125 void* space = mmap(NULL, mmap_size, prot, flags, -1, 0); in __create_thread_mapped_space()
130 mmap_size, strerror(errno)); in __create_thread_mapped_space()
140 munmap(space, mmap_size); in __create_thread_mapped_space()
148 size_t mmap_size; in __allocate_thread() local
154 mmap_size = BIONIC_ALIGN(attr->stack_size + sizeof(pthread_internal_t), PAGE_SIZE); in __allocate_thread()
156 attr->stack_base = __create_thread_mapped_space(mmap_size, attr->guard_size); in __allocate_thread()
160 stack_top = reinterpret_cast<uint8_t*>(attr->stack_base) + mmap_size; in __allocate_thread()
163 mmap_size = 0; in __allocate_thread()
[all …]
Dpthread_internal.cpp71 if (thread->mmap_size != 0) { in __pthread_internal_free()
73 munmap(thread->attr.stack_base, thread->mmap_size); in __pthread_internal_free()
Dpthread_exit.cpp109 if (thread->mmap_size != 0) { in pthread_exit()
119 _exit_with_stack_teardown(thread->attr.stack_base, thread->mmap_size); in pthread_exit()
Dpthread_internal.h94 size_t mmap_size; member
Dlibc_init_common.cpp93 main_thread.mmap_size = 0; in __libc_init_tls()