Home
last modified time | relevance | path

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

/bionic/libc/bionic/
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()
Dbionic_allocator.cpp266 size_t allocated_size; in alloc_mmap() local
267 if (__builtin_add_overflow(header_size, size, &allocated_size) || in alloc_mmap()
268 page_end(allocated_size) < allocated_size) { in alloc_mmap()
271 allocated_size = page_end(allocated_size); in alloc_mmap()
272 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
279 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, map_ptr, allocated_size, "bionic_alloc_lob"); in alloc_mmap()
285 info->allocated_size = allocated_size; in alloc_mmap()
355 old_size = info->allocated_size - (static_cast<char*>(ptr) - reinterpret_cast<char*>(info)); in realloc()
377 munmap(info, info->allocated_size); in free()
392 return info->allocated_size - (static_cast<char*>(ptr) - reinterpret_cast<char*>(info)); in get_chunk_size()
Dsysinfo.cpp45 size_t allocated_size = 0; in __get_cpu_count() local
46 if (getline(&line, &allocated_size, fp) != -1) { in __get_cpu_count()
/bionic/libc/private/
Dbionic_allocator.h48 size_t allocated_size; member