Home
last modified time | relevance | path

Searched refs:allocator_addr (Results 1 - 11 of 11) sorted by relevance

/arkcompiler/runtime_core/libpandabase/mem/
H A Dpool_map.cpp24 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 Dpool_manager.cpp31 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 Dmem_pool.h78 * @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 Dmalloc_mem_pool.h27 ArenaT *AllocArenaImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr);
33 const void *allocator_addr);
H A Dpool_map.h77 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 Dmmap_mem_pool-inl.h181 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 Dmmap_mem_pool.h183 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 Dmalloc_mem_pool-inl.h39 [[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 Dpool_manager.h34 const void *allocator_addr = nullptr);
/arkcompiler/runtime_core/libpandabase/tests/
H A Dpool_map_test.cpp46 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 Dmmap_mem_pool_test.cpp106 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()

Completed in 6 milliseconds