Home
last modified time | relevance | path

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

/art/compiler/utils/
Dscoped_arena_allocator.cc56 uint8_t* ArenaStack::AllocateFromNextArena(size_t rounded_bytes) { in AllocateFromNextArena() argument
58 size_t allocation_size = std::max(Arena::kDefaultSize, rounded_bytes); in AllocateFromNextArena()
95 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind() local
97 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in AllocValgrind()
98 ptr = AllocateFromNextArena(rounded_bytes); in AllocValgrind()
101 top_ptr_ = ptr + rounded_bytes; in AllocValgrind()
103 VALGRIND_MAKE_MEM_NOACCESS(ptr + bytes, rounded_bytes - bytes); in AllocValgrind()
Dscoped_arena_allocator.h70 size_t rounded_bytes = RoundUp(bytes, 8); in Alloc() local
72 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in Alloc()
73 ptr = AllocateFromNextArena(rounded_bytes); in Alloc()
76 top_ptr_ = ptr + rounded_bytes; in Alloc()
80 uint8_t* AllocateFromNextArena(size_t rounded_bytes);
Darena_allocator.cc229 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind() local
230 if (UNLIKELY(ptr_ + rounded_bytes > end_)) { in AllocValgrind()
232 ObtainNewArenaForAllocation(rounded_bytes); in AllocValgrind()
237 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocValgrind()
239 ptr_ += rounded_bytes; in AllocValgrind()
244 VALGRIND_MAKE_MEM_NOACCESS(ret + bytes, rounded_bytes - bytes); in AllocValgrind()