/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | pool_map.cpp | 24 const void *allocator_addr) in AddPoolToMap() 28 ASSERT(allocator_addr != nullptr); in AddPoolToMap() 31 pool_map_[first_map_num].Initialize(FIRST_BYTE_IN_SEGMENT_VALUE, space_type, allocator_type, allocator_addr); in AddPoolToMap() 33 pool_map_[i].Initialize(!FIRST_BYTE_IN_SEGMENT_VALUE, space_type, allocator_type, allocator_addr); in AddPoolToMap() 52 const void *allocator_addr = pool_map_[map_num].GetAllocatorAddr(); in GetAllocatorInfo() local 55 ASSERT(allocator_addr != nullptr); in GetAllocatorInfo() 56 return AllocatorInfo(allocator_type, allocator_addr); in GetAllocatorInfo() 23 AddPoolToMap(const void *pool_addr, size_t pool_size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr) AddPoolToMap() argument
|
H A D | pool_manager.cpp | 31 const void *allocator_addr) in AllocArena() 34 return mmap_mem_pool->AllocArenaImpl(size, space_type, allocator_type, allocator_addr); in AllocArena() 36 return malloc_mem_pool->AllocArenaImpl(size, space_type, allocator_type, allocator_addr); in AllocArena() 30 AllocArena(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr) AllocArena() argument
|
H A D | mem_pool.h | 78 * @param allocator_addr - address of the allocator header. 81 // TODO(aemelenko): We must always define allocator_addr for AllocArena 85 const void *allocator_addr = nullptr) in AllocArena() 88 allocator_addr); in AllocArena() 107 * @param allocator_addr - address of the allocator header. 112 const void *allocator_addr = nullptr) in AllocPool() 114 return static_cast<MemPoolImplT *>(this)->AllocPoolImpl(size, space_type, allocator_type, allocator_addr); in AllocPool()
|
H A D | malloc_mem_pool.h | 27 ArenaT *AllocArenaImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr); 33 const void *allocator_addr);
|
H A D | pool_map.h | 77 const void *allocator_addr); 98 const void *allocator_addr) in Initialize() 109 allocator_addr_ = allocator_addr; in Initialize() 97 Initialize(bool first_byte_in_segment, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr) Initialize() argument
|
H A D | mmap_mem_pool-inl.h | 181 const void *allocator_addr) in AllocArenaImpl() 186 Pool pool_for_arena = AllocPoolUnsafe(size, space_type, allocator_type, allocator_addr); in AllocArenaImpl() 313 const void *allocator_addr) in AllocPoolUnsafe() 350 if (UNLIKELY(allocator_addr == nullptr)) { in AllocPoolUnsafe() 352 allocator_addr = pool.GetMem(); in AllocPoolUnsafe() 356 allocator_type, allocator_addr); in AllocPoolUnsafe() local 358 AddToNonObjectPoolsMap(std::make_tuple(pool, AllocatorInfo(allocator_type, allocator_addr), space_type)); in AllocPoolUnsafe() 405 const void *allocator_addr) in AllocPoolImpl() 410 Pool pool = AllocPoolUnsafe(size, space_type, allocator_type, allocator_addr); in AllocPoolImpl() 180 AllocArenaImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr) AllocArenaImpl() argument 312 AllocPoolUnsafe(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr) AllocPoolUnsafe() argument 404 AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr) AllocPoolImpl() argument
|
H A D | mmap_mem_pool.h | 183 ArenaT *AllocArenaImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr); 194 Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr); 201 Pool AllocPoolUnsafe(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr);
|
H A D | malloc_mem_pool-inl.h | 39 [[maybe_unused]] const void *allocator_addr) in AllocArenaImpl() 75 [[maybe_unused]] const void *allocator_addr) in AllocPoolImpl() 37 AllocArenaImpl(size_t size, [[maybe_unused]] SpaceType space_type, [[maybe_unused]] AllocatorType allocator_type, [[maybe_unused]] const void *allocator_addr) AllocArenaImpl() argument 73 AllocPoolImpl(size_t size, [[maybe_unused]] SpaceType space_type, [[maybe_unused]] AllocatorType allocator_type, [[maybe_unused]] const void *allocator_addr) AllocPoolImpl() argument
|
H A D | pool_manager.h | 34 const void *allocator_addr = nullptr);
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | pool_map_test.cpp | 46 void AddToPoolMap(Pool pool, SpaceType space_type, AllocatorType allocator_type, void *allocator_addr = nullptr) in AddToPoolMap() 48 if (allocator_addr == nullptr) { in AddToPoolMap() 49 allocator_addr = pool.GetMem(); in AddToPoolMap() 52 pool_map_.AddPoolToMap(pool.GetMem(), pool.GetSize(), space_type, allocator_type, allocator_addr); in AddToPoolMap() 93 void CheckRandomPoolAddress(Pool pool, SpaceType space_type, AllocatorType allocator_type, uintptr_t allocator_addr) in CheckRandomPoolAddress() argument 98 ASSERT_EQ(ToUintPtr(GetAllocatorInfoForAddr(pool_addr).GetAllocatorHeaderAddr()), allocator_addr); in CheckRandomPoolAddress()
|
H A D | mmap_mem_pool_test.cpp | 106 int *allocator_addr = new int(); in HWTEST_F() 107 Pool pool_with_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE, allocator_addr); in HWTEST_F() 114 ToUintPtr(allocator_addr)); in HWTEST_F() 130 delete allocator_addr; in HWTEST_F()
|