Lines Matching refs:Arena
31 constexpr size_t Arena::kDefaultSize;
93 void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first, in Dump()
98 for (const Arena* arena = first; arena != nullptr; arena = arena->next_) { in Dump()
124 Arena::Arena() : bytes_allocated_(0), next_(nullptr) { in Arena() function in art::Arena
156 void Arena::Reset() { in Reset()
182 Arena* ArenaPool::AllocArena(size_t size) { in AllocArena()
184 Arena* ret = nullptr; in AllocArena()
193 ret = use_malloc_ ? static_cast<Arena*>(new MallocArena(size)) : in AllocArena()
213 for (Arena* arena = free_arenas_; arena != nullptr; arena = arena->next_) { in GetBytesAllocated()
219 void ArenaPool::FreeArenaChain(Arena* first) { in FreeArenaChain()
221 for (Arena* arena = first; arena != nullptr; arena = arena->next_) { in FreeArenaChain()
226 Arena* last = first; in FreeArenaChain()
244 for (Arena* cur_arena = arena_head_->next_; cur_arena != nullptr; in BytesUsed()
297 Arena* new_arena = pool_->AllocArena(std::max(Arena::kDefaultSize, allocation_size)); in ObtainNewArenaForAllocation()
309 for (const Arena* cur_arena = arena_head_; cur_arena != nullptr; cur_arena = cur_arena->next_) { in Contains()
317 MemStats::MemStats(const char* name, const ArenaAllocatorStats* stats, const Arena* first_arena, in MemStats()