Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dbionic_allocator.cpp270 size_t allocated_size; in alloc_mmap() local
271 if (__builtin_add_overflow(header_size, size, &allocated_size) || in alloc_mmap()
272 PAGE_END(allocated_size) < allocated_size) { in alloc_mmap()
275 allocated_size = PAGE_END(allocated_size); in alloc_mmap()
276 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
283 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, map_ptr, allocated_size, "bionic_alloc_lob"); in alloc_mmap()
289 info->allocated_size = allocated_size; in alloc_mmap()
358 old_size = info->allocated_size - (static_cast<char*>(ptr) - reinterpret_cast<char*>(info)); in realloc()
386 munmap(info, info->allocated_size); in free()
Dgetcwd.cpp45 size_t allocated_size = size; in getcwd() local
50 allocated_size = getpagesize(); in getcwd()
52 buf = allocated_buf = static_cast<char*>(malloc(allocated_size)); in getcwd()
59 int rc = __getcwd(buf, allocated_size); in getcwd()
/bionic/libc/private/
Dbionic_allocator.h52 size_t allocated_size; member