Home
last modified time | relevance | path

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

/aosp12/bionic/libc/bionic/
H A 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()
406 return info->allocated_size - (static_cast<char*>(ptr) - reinterpret_cast<char*>(info)); in get_chunk_size()
H A 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()
/aosp12/system/memory/lmkd/tests/
H A Dlmkd_test.cpp193 size_t allocated_size = 0; in add_pressure() local
196 while (allocated_size < data->total_size) { in add_pressure()
203 memset((void*)ptr, (int)(allocated_size + 1), data->step_size); in add_pressure()
204 allocated_size += data->step_size; in add_pressure()
205 data->allocated = allocated_size; in add_pressure()
209 data->finished = (allocated_size >= data->total_size); in add_pressure()
/aosp12/bionic/libc/private/
H A Dbionic_allocator.h52 size_t allocated_size; member