Searched defs:rounded_bytes (Results 1 - 3 of 3) sorted by relevance

/art/runtime/base/
H A Dscoped_arena_allocator.cc55 uint8_t* ArenaStack::AllocateFromNextArena(size_t rounded_bytes) { argument
57 size_t allocation_size = std::max(Arena::kDefaultSize, rounded_bytes);
97 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); local
99 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) {
100 ptr = AllocateFromNextArena(rounded_bytes);
105 top_ptr_ = ptr + rounded_bytes;
H A Dscoped_arena_allocator.h93 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kArenaAlignment : 0u), kArenaAlignment); variable
95 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) {
96 ptr = AllocateFromNextArena(rounded_bytes);
99 top_ptr_ = ptr + rounded_bytes;
107 uint8_t* AllocateFromNextArena(size_t rounded_bytes);
H A Darena_allocator.cc322 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); local
323 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind);
325 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) {
326 ret = AllocFromNewArena(rounded_bytes);
330 DCHECK(ptr_ - rounded_bytes == ret);
336 DCHECK_EQ(rounded_bytes, arena_head_->next_->GetBytesAllocated());
342 ptr_ += rounded_bytes;

Completed in 410 milliseconds