Home
last modified time | relevance | path

Searched refs:Arena (Results 1 – 12 of 12) 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()
Darena_allocator.h31 class Arena; variable
128 [[maybe_unused]] const Arena* first, in Dump()
143 void Dump(std::ostream& os, const Arena* first, ssize_t lost_bytes_adjustment) const;
180 class Arena {
182 Arena() : bytes_allocated_(0), memory_(nullptr), size_(0), next_(nullptr) {} in Arena() function
184 virtual ~Arena() { } in ~Arena()
210 Arena* Next() const { return next_; } in Next()
216 Arena* next_;
227 DISALLOW_COPY_AND_ASSIGN(Arena);
234 virtual Arena* AllocArena(size_t size) = 0;
[all …]
Dmalloc_arena_pool.h30 Arena* AllocArena(size_t size) override;
31 void FreeArenaChain(Arena* first) override;
39 Arena* free_arenas_;
Darena_allocator.cc131 void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first, in Dump()
136 for (const Arena* arena = first; arena != nullptr; arena = arena->next_) { in Dump()
194 for (Arena* cur_arena = arena_head_->next_; cur_arena != nullptr; in BytesUsed()
275 Arena* new_arena = pool_->AllocArena(std::max(arena_allocator::kArenaDefaultSize, bytes)); in AllocFromNewArena()
320 for (const Arena* cur_arena = arena_head_; cur_arena != nullptr; cur_arena = cur_arena->next_) { in Contains()
330 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()
174 Arena* start; in ApproximatePeakBytes()
186 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.cc35 class MemMapArena final : public Arena {
105 Arena* arena = free_arenas_; in ReclaimMemory()
116 Arena* MemMapArenaPool::AllocArena(size_t size) { in AllocArena()
117 Arena* ret = nullptr; in AllocArena()
135 for (Arena* arena = free_arenas_; arena != nullptr; arena = arena->next_) { in TrimMaps()
143 for (Arena* arena = free_arenas_; arena != nullptr; arena = arena->next_) { in GetBytesAllocated()
149 void MemMapArenaPool::FreeArenaChain(Arena* first) { in FreeArenaChain()
151 for (Arena* arena = first; arena != nullptr; arena = arena->next_) { in FreeArenaChain()
159 Arena* next = first->next_; in FreeArenaChain()
167 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_;
Dgc_visited_arena_pool.h37 class TrackedArena final : public Arena {
151 Arena* AllocArena(size_t size, bool need_first_obj_arr) REQUIRES(lock_);
153 Arena* AllocArena(size_t size) override REQUIRES(!lock_) { in AllocArena()
157 void FreeArenaChain(Arena* first) override REQUIRES(!lock_);
Dgc_visited_arena_pool.cc31 : Arena(), in TrackedArena()
171 Arena* arena; in AllocSingleObjArena()
219 Arena* GcVisitedArenaPool::AllocArena(size_t size, bool single_obj_arena) { in AllocArena()
339 void GcVisitedArenaPool::FreeArenaChain(Arena* first) { in FreeArenaChain()
341 for (Arena* arena = first; arena != nullptr; arena = arena->Next()) { in FreeArenaChain()
/art/runtime/
Dlinear_alloc-inl.h33 Arena* arena = allocator_.GetHeadArena(); in SetFirstObject()