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

/bionic/libc/bionic/
H A Dpthread_create.cpp115 static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_size) { argument
119 void* space = mmap(NULL, mmap_size, prot, flags, -1, 0);
124 mmap_size, strerror(errno));
134 munmap(space, mmap_size);
143 size_t mmap_size; local
149 mmap_size = BIONIC_ALIGN(attr->stack_size + sizeof(pthread_internal_t), PAGE_SIZE);
151 attr->stack_base = __create_thread_mapped_space(mmap_size, attr->guard_size);
155 stack_top = reinterpret_cast<uint8_t*>(attr->stack_base) + mmap_size;
158 mmap_size = 0;
171 if (mmap_size
[all...]
H A D__libc_init_main_thread.cpp74 main_thread.mmap_size = 0;
H A Dpthread_internal.cpp71 if (thread->mmap_size != 0) {
73 munmap(thread->attr.stack_base, thread->mmap_size);
H A Dpthread_exit.cpp109 if (thread->mmap_size != 0) {
119 _exit_with_stack_teardown(thread->attr.stack_base, thread->mmap_size);
H A Dpthread_internal.h99 size_t mmap_size; member in class:pthread_internal_t

Completed in 78 milliseconds