Searched refs:rounded_bytes (Results 1 – 3 of 3) sorted by relevance
55 uint8_t* ArenaStack::AllocateFromNextArena(size_t rounded_bytes) { in AllocateFromNextArena() argument57 size_t allocation_size = std::max(Arena::kDefaultSize, rounded_bytes); in AllocateFromNextArena()97 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local99 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in AllocWithMemoryTool()100 ptr = AllocateFromNextArena(rounded_bytes); in AllocWithMemoryTool()105 top_ptr_ = ptr + rounded_bytes; in AllocWithMemoryTool()
93 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kArenaAlignment : 0u), kArenaAlignment); in Alloc() local95 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in Alloc()96 ptr = AllocateFromNextArena(rounded_bytes); in Alloc()99 top_ptr_ = ptr + rounded_bytes; in Alloc()107 uint8_t* AllocateFromNextArena(size_t rounded_bytes);
322 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local323 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryTool()325 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()326 ret = AllocFromNewArena(rounded_bytes); in AllocWithMemoryTool()330 DCHECK(ptr_ - rounded_bytes == ret); in AllocWithMemoryTool()336 DCHECK_EQ(rounded_bytes, arena_head_->next_->GetBytesAllocated()); in AllocWithMemoryTool()342 ptr_ += rounded_bytes; in AllocWithMemoryTool()