Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/bionic/
Dgetcwd.cpp46 size_t allocated_size = size; in getcwd() local
51 allocated_size = getpagesize(); in getcwd()
53 buf = allocated_buf = static_cast<char*>(malloc(allocated_size)); in getcwd()
62 int rc = __getcwd(buf, allocated_size); in getcwd()
/bionic/linker/
Dlinker_allocator.cpp229 size_t allocated_size = PAGE_END(size + sizeof(page_info)); in alloc_mmap() local
230 void* map_ptr = mmap(nullptr, allocated_size, in alloc_mmap()
237 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, map_ptr, allocated_size, "linker_alloc_lob"); in alloc_mmap()
239 memset(map_ptr, 0, allocated_size); in alloc_mmap()
244 info->allocated_size = allocated_size; in alloc_mmap()
292 old_size = info->allocated_size - sizeof(page_info); in realloc()
320 munmap(info, info->allocated_size); in free()
Dlinker_allocator.h44 size_t allocated_size; member