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

/bionic/libc/bionic/
H A Dpthread_create.cpp165 static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_size) { argument
169 void* space = mmap(NULL, mmap_size, prot, flags, -1, 0);
174 mmap_size, strerror(errno));
184 munmap(space, mmap_size);
193 size_t mmap_size; local
199 if (__builtin_add_overflow(attr->stack_size, attr->guard_size, &mmap_size)) return EAGAIN;
200 if (__builtin_add_overflow(mmap_size, sizeof(pthread_internal_t), &mmap_size)) return EAGAIN;
201 mmap_size = __BIONIC_ALIGN(mmap_size, PAGE_SIZ
[all...]
H A D__libc_init_main_thread.cpp87 main_thread.mmap_size = 0;
H A Dpthread_exit.cpp121 if (thread->mmap_size != 0) {
129 _exit_with_stack_teardown(thread->attr.stack_base, thread->mmap_size);
H A Dpthread_internal.cpp90 if (thread->mmap_size != 0) {
92 munmap(thread->attr.stack_base, thread->mmap_size);
H A Dgrp_pwd_file.cpp241 auto mmap_size = fd_stat.st_size; local
243 void* map_result = mmap(nullptr, mmap_size, PROT_READ, MAP_SHARED, fd, 0);
251 end_ = start_ + mmap_size - 1;
254 munmap(map_result, mmap_size);
H A Dpthread_internal.h104 size_t mmap_size; member in class:pthread_internal_t
/bionic/linker/
H A Dlinker_phdr.cpp541 size_t mmap_size = align_up(size, align) + align - PAGE_SIZE;
543 reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0));
549 uint8_t* last = align_down(mmap_ptr + mmap_size, align) - size;
553 munmap(start + size, mmap_ptr + mmap_size - (start + size));

Completed in 754 milliseconds