Home
last modified time | relevance | path

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

/art/libartbase/base/
Darena_allocator.cc226 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local
227 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryTool()
229 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()
230 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryTool()
233 ptr_ += rounded_bytes; in AllocWithMemoryTool()
245 size_t rounded_bytes = bytes + kMemoryToolRedZoneBytes; in AllocWithMemoryToolAlign16() local
246 DCHECK_ALIGNED(rounded_bytes, 8); // `bytes` is 16-byte aligned, red zone is 8-byte aligned. in AllocWithMemoryToolAlign16()
249 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryToolAlign16()
251 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16()
253 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryToolAlign16()
[all …]
Dscoped_arena_allocator.h102 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment); in Alloc() local
104 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in Alloc()
105 ptr = AllocateFromNextArena(rounded_bytes); in Alloc()
108 top_ptr_ = ptr + rounded_bytes; in Alloc()
116 uint8_t* AllocateFromNextArena(size_t rounded_bytes);
Dscoped_arena_allocator.cc54 uint8_t* ArenaStack::AllocateFromNextArena(size_t rounded_bytes) { in AllocateFromNextArena() argument
56 size_t allocation_size = std::max(arena_allocator::kArenaDefaultSize, rounded_bytes); in AllocateFromNextArena()
96 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local
98 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in AllocWithMemoryTool()
99 ptr = AllocateFromNextArena(rounded_bytes); in AllocWithMemoryTool()
104 top_ptr_ = ptr + rounded_bytes; in AllocWithMemoryTool()