Home
last modified time | relevance | path

Searched refs:Arena (Results 1 – 9 of 9) sorted by relevance

/art/libartbase/base/
Dmalloc_arena_pool.cc31 class MallocArena final : public Arena {
78 void Arena::Reset() { in Reset()
94 Arena* arena = free_arenas_; in ReclaimMemory()
105 Arena* MallocArenaPool::AllocArena(size_t size) { in AllocArena()
106 Arena* ret = nullptr; in AllocArena()
128 for (Arena* arena = free_arenas_; arena != nullptr; arena = arena->next_) { in GetBytesAllocated()
134 void MallocArenaPool::FreeArenaChain(Arena* first) { in FreeArenaChain()
136 for (Arena* arena = first; arena != nullptr; arena = arena->next_) { in FreeArenaChain()
144 Arena* next = first->next_; in FreeArenaChain()
152 Arena* last = first; in FreeArenaChain()
Dmalloc_arena_pool.h30 Arena* AllocArena(size_t size) override;
31 void FreeArenaChain(Arena* first) override;
39 Arena* free_arenas_;
Darena_allocator.h31 class Arena; variable
125 const Arena* first ATTRIBUTE_UNUSED, in Dump()
140 void Dump(std::ostream& os, const Arena* first, ssize_t lost_bytes_adjustment) const;
177 class Arena {
179 Arena();
180 virtual ~Arena() { } in ~Arena()
214 Arena* next_;
225 DISALLOW_COPY_AND_ASSIGN(Arena);
232 virtual Arena* AllocArena(size_t size) = 0;
233 virtual void FreeArenaChain(Arena* first) = 0;
[all …]
Darena_allocator.cc130 void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first, in Dump()
135 for (const Arena* arena = first; arena != nullptr; arena = arena->next_) { in Dump()
188 Arena::Arena() : bytes_allocated_(0), memory_(nullptr), size_(0), next_(nullptr) { in Arena() function in art::Arena
198 for (Arena* cur_arena = arena_head_->next_; cur_arena != nullptr; in BytesUsed()
272 Arena* new_arena = pool_->AllocArena(std::max(arena_allocator::kArenaDefaultSize, bytes)); in AllocFromNewArena()
317 for (const Arena* cur_arena = arena_head_; cur_arena != nullptr; cur_arena = cur_arena->next_) { in Contains()
327 const Arena* first_arena, in MemStats()
Dscoped_arena_allocator.cc63 Arena* tail = top_arena_->next_; in AllocateFromNextArena()
112 for (Arena* arena = bottom_arena_; arena != nullptr; arena = arena->next_) { in ApproximatePeakBytes()
172 Arena* start; in ApproximatePeakBytes()
184 for (Arena* arena = start; arena != nullptr; arena = arena->next_) { in ApproximatePeakBytes()
Dscoped_arena_allocator.h122 Arena* bottom_arena_;
123 Arena* top_arena_;
178 Arena* mark_arena_;
Darena_allocator_test.cc30 for (Arena* a = allocator->arena_head_; a != nullptr; a = a->next_) { in NumberOfArenas()
/art/runtime/base/
Dmem_map_arena_pool.cc34 class MemMapArena final : public Arena {
93 Arena* arena = free_arenas_; in ReclaimMemory()
104 Arena* MemMapArenaPool::AllocArena(size_t size) { in AllocArena()
105 Arena* ret = nullptr; in AllocArena()
123 for (Arena* arena = free_arenas_; arena != nullptr; arena = arena->next_) { in TrimMaps()
131 for (Arena* arena = free_arenas_; arena != nullptr; arena = arena->next_) { in GetBytesAllocated()
137 void MemMapArenaPool::FreeArenaChain(Arena* first) { in FreeArenaChain()
139 for (Arena* arena = first; arena != nullptr; arena = arena->next_) { in FreeArenaChain()
147 Arena* next = first->next_; in FreeArenaChain()
155 Arena* last = first; in FreeArenaChain()
Dmem_map_arena_pool.h28 Arena* AllocArena(size_t size) override;
29 void FreeArenaChain(Arena* first) override;
39 Arena* free_arenas_;