Lines Matching refs:bytes
50 char* Allocate(size_t bytes) override { in Allocate() argument
51 return AllocateImpl(bytes, false /*force_arena*/, in Allocate()
52 [=]() { return arena_.Allocate(bytes); }); in Allocate()
55 char* AllocateAligned(size_t bytes, size_t huge_page_size = 0,
57 size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1;
58 assert(rounded_up >= bytes && rounded_up < bytes + sizeof(void*) &&
129 char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { in AllocateImpl() argument
137 if (bytes > shard_block_size_ / 4 || force_arena || in AllocateImpl()
159 if (avail < bytes) { in AllocateImpl()
168 if (exact >= bytes && arena_.IsInInlineBlock()) { in AllocateImpl()
188 s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); in AllocateImpl()
191 if ((bytes % sizeof(void*)) == 0) { in AllocateImpl()
194 s->free_begin_ += bytes; in AllocateImpl()
197 rv = s->free_begin_ + avail - bytes; in AllocateImpl()