Searched refs:rounded_bytes (Results 1 – 3 of 3) sorted by relevance
226 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local227 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() local246 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 …]
102 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment); in Alloc() local104 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);
54 uint8_t* ArenaStack::AllocateFromNextArena(size_t rounded_bytes) { in AllocateFromNextArena() argument56 size_t allocation_size = std::max(arena_allocator::kArenaDefaultSize, rounded_bytes); in AllocateFromNextArena()96 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local98 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()