Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 15 of 15) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
Darena_test.cpp56 ArenaT *arena = CreateArena<ArenaT>(arena_size); in GetOccupiedAndFreeSizeTestImplementation() local
57 size_t old_free_size = arena->GetFreeSize(); in GetOccupiedAndFreeSizeTestImplementation()
58 ASSERT_TRUE(arena->Alloc(alloc_size) != nullptr); in GetOccupiedAndFreeSizeTestImplementation()
59 ASSERT_TRUE(arena->GetOccupiedSize() == alloc_size); in GetOccupiedAndFreeSizeTestImplementation()
60 ASSERT_TRUE(old_free_size - alloc_size == arena->GetFreeSize()); in GetOccupiedAndFreeSizeTestImplementation()
69 ArenaT *arena = CreateArena<ArenaT>(arena_size); in ResizeAndResetTestImplementation() local
70 ASSERT_TRUE(alloc_size * immTwo <= arena->GetFreeSize()); in ResizeAndResetTestImplementation()
71 void *first_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation()
72 void *second_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation()
75 ASSERT_TRUE(arena->GetOccupiedSize() == immTwo * alloc_size); in ResizeAndResetTestImplementation()
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Darena.h47 void LinkTo(Arena *arena);
180 void LinkNext(DoubleLinkedAlignedArena *arena) in LinkNext() argument
182 Arena::LinkTo(static_cast<Arena *>(arena)); in LinkNext()
189 void LinkPrev(DoubleLinkedAlignedArena *arena) in LinkPrev() argument
192 prev_ = arena; in LinkPrev()
Dmalloc_mem_pool-inl.h63 inline void MallocMemPool::FreeArenaImpl(ArenaT *arena) in FreeArenaImpl() argument
65 LOG_MALLOC_MEM_POOL(DEBUG) << "Try to free arena with size " << std::dec << arena->GetSize() in FreeArenaImpl()
66 << " at addr = " << std::hex << arena; in FreeArenaImpl()
67 arena->~Arena(); in FreeArenaImpl()
68 os::mem::AlignedFree(arena); in FreeArenaImpl()
Dpool_manager.cpp39 void PoolManager::FreeArena(Arena *arena) in FreeArena() argument
42 return mmap_mem_pool->FreeArenaImpl(arena); in FreeArena()
44 return malloc_mem_pool->FreeArenaImpl(arena); in FreeArena()
Darena-inl.h73 inline void Arena::LinkTo(Arena *arena) in LinkTo() argument
75 LOG(DEBUG, ALLOC) << "Link arena " << this << " to " << arena; in LinkTo()
77 next_ = arena; in LinkTo()
Dmem_pool.h97 inline void FreeArena(ArenaT *arena) in FreeArena() argument
99 static_cast<MemPoolImplT *>(this)->template FreeArenaImpl<ArenaT>(arena); in FreeArena()
Dpool_manager.h35 static void FreeArena(Arena *arena);
Dmalloc_mem_pool.h30 void FreeArenaImpl(ArenaT *arena);
Dalloc_tracker.cpp157 for (auto &arena : arenas_) { in Dump() local
158 uint8_t *ptr = arena.get(); in Dump()
Dmmap_mem_pool-inl.h202 inline void MmapMemPool::FreeArenaImpl(ArenaT *arena) in FreeArenaImpl() argument
205 size_t size = arena->GetSize(); in FreeArenaImpl()
209 << arena; in FreeArenaImpl()
210 FreePoolUnsafe(arena, size); in FreeArenaImpl()
Dmmap_mem_pool.h180 void FreeArenaImpl(ArenaT *arena);
/arkcompiler/runtime_core/tests/checked/
Ddisasm_and_log_demo.pa14 #! CHECKER Check that MmapMemPool: Try to free arena
/arkcompiler/runtime_core/docs/
Dmemory-management.md240 It is a region-based allocator, i.e., all allocated in region/arena objects can be efficiently deal…
322 This allocator works over some arena and after the program will be out of the context - this arena
Dir_format.md260 …requent storage reallocation, that leads to memory fragmentation (IR uses arena allocator) and add…
/arkcompiler/toolchain/build/third_party_gn/protobuf/
DBUILD.gn28 "$protobuf_src_root/google/protobuf/arena.cc",
87 "$protobuf_src_root/google/protobuf/arena.cc",