Searched refs:ArenaBlock (Results 1 – 2 of 2) sorted by relevance
41 struct ArenaBlock { struct43 ArenaBlock* next; argument45 uint8_t* data() { return reinterpret_cast<uint8_t*>(this) + sizeof(ArenaBlock); } in data() argument49 inline ArenaBlock* AllocArenaBlock(size_t size, size_t align, ArenaBlock* blocks) { in AllocArenaBlock() argument51 size += AlignUp(sizeof(ArenaBlock), align); in AllocArenaBlock()55 return new (MmapPoolForArena::Alloc()) ArenaBlock{kDefaultArenaBlockSize, blocks}; in AllocArenaBlock()57 return new (MmapOrDie(size)) ArenaBlock{AlignUpPageSize(size), blocks}; in AllocArenaBlock()61 inline void FreeArenaBlocks(ArenaBlock* blocks) { in FreeArenaBlocks()116 arena_internal::ArenaBlock* blocks_ = nullptr;
41 return AlignUpPageSize(AlignUp(sizeof(arena_internal::ArenaBlock), align) + requested_size); in BigMapSize()