Searched refs:rounded_bytes (Results 1 – 3 of 3) sorted by relevance
56 uint8_t* ArenaStack::AllocateFromNextArena(size_t rounded_bytes) { in AllocateFromNextArena() argument58 size_t allocation_size = std::max(Arena::kDefaultSize, rounded_bytes); in AllocateFromNextArena()95 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind() local97 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()
70 size_t rounded_bytes = RoundUp(bytes, 8); in Alloc() local72 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);
229 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind() local230 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()