Lines Matching defs:mmap_size
115 static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_size) {
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;
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 == 0) {
178 thread->mmap_size = mmap_size;
264 if (thread->mmap_size != 0) {
265 munmap(thread->attr.stack_base, thread->mmap_size);