Searched refs:arena (Results 1 – 15 of 15) sorted by relevance
56 ArenaT *arena = CreateArena<ArenaT>(arena_size); in GetOccupiedAndFreeSizeTestImplementation() local57 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() local70 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 …]
47 void LinkTo(Arena *arena);180 void LinkNext(DoubleLinkedAlignedArena *arena) in LinkNext() argument182 Arena::LinkTo(static_cast<Arena *>(arena)); in LinkNext()189 void LinkPrev(DoubleLinkedAlignedArena *arena) in LinkPrev() argument192 prev_ = arena; in LinkPrev()
63 inline void MallocMemPool::FreeArenaImpl(ArenaT *arena) in FreeArenaImpl() argument65 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()
39 void PoolManager::FreeArena(Arena *arena) in FreeArena() argument42 return mmap_mem_pool->FreeArenaImpl(arena); in FreeArena()44 return malloc_mem_pool->FreeArenaImpl(arena); in FreeArena()
73 inline void Arena::LinkTo(Arena *arena) in LinkTo() argument75 LOG(DEBUG, ALLOC) << "Link arena " << this << " to " << arena; in LinkTo()77 next_ = arena; in LinkTo()
97 inline void FreeArena(ArenaT *arena) in FreeArena() argument99 static_cast<MemPoolImplT *>(this)->template FreeArenaImpl<ArenaT>(arena); in FreeArena()
35 static void FreeArena(Arena *arena);
30 void FreeArenaImpl(ArenaT *arena);
157 for (auto &arena : arenas_) { in Dump() local158 uint8_t *ptr = arena.get(); in Dump()
202 inline void MmapMemPool::FreeArenaImpl(ArenaT *arena) in FreeArenaImpl() argument205 size_t size = arena->GetSize(); in FreeArenaImpl()209 << arena; in FreeArenaImpl()210 FreePoolUnsafe(arena, size); in FreeArenaImpl()
180 void FreeArenaImpl(ArenaT *arena);
14 #! CHECKER Check that MmapMemPool: Try to free arena
240 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 …
260 …requent storage reallocation, that leads to memory fragmentation (IR uses arena allocator) and add…
28 "$protobuf_src_root/google/protobuf/arena.cc",87 "$protobuf_src_root/google/protobuf/arena.cc",