/arkcompiler/runtime_core/libpandabase/mem/ |
D | pool_manager.cpp | 25 PoolType PoolManager::pool_type = PoolType::MMAP; 26 bool PoolManager::is_initialized = false; 27 MallocMemPool *PoolManager::malloc_mem_pool = nullptr; 28 MmapMemPool *PoolManager::mmap_mem_pool = nullptr; 30 Arena *PoolManager::AllocArena(size_t size, SpaceType space_type, AllocatorType allocator_type, in AllocArena() 39 void PoolManager::FreeArena(Arena *arena) in FreeArena() 47 void PoolManager::Initialize(PoolType type) in Initialize() 60 MmapMemPool *PoolManager::GetMmapMemPool() in GetMmapMemPool() 67 MallocMemPool *PoolManager::GetMallocMemPool() in GetMallocMemPool() 74 void PoolManager::Finalize() in Finalize()
|
D | pool_manager.h | 26 class PoolManager { 28 ~PoolManager() = default; 29 PoolManager() = default; 30 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(PoolManager); 31 DEFAULT_COPY_SEMANTIC(PoolManager);
|
D | arena_allocator.cpp | 35 …arenas_ = PoolManager::AllocArena(DEFAULT_ARENA_SIZE, space_type_, AllocatorType::ARENA_ALLOCATOR,… in ArenaAllocatorT() 51 …arenas_ = PoolManager::AllocArena(DEFAULT_ARENA_SIZE, space_type_, AllocatorType::ARENA_ALLOCATOR,… in ArenaAllocatorT() 64 PoolManager::FreeArena(cur); in ~ArenaAllocatorT() 136 PoolManager::FreeArena(arenas_); in Resize() 158 Arena *new_arena = PoolManager::AllocArena(pool_size, space_type_, GetAllocatorType(), this); in AddArenaFromPool()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
D | pool_manager.cpp | 25 PoolType PoolManager::poolType_ = PoolType::MMAP; 26 bool PoolManager::isInitialized_ = false; 27 MallocMemPool *PoolManager::mallocMemPool_ = nullptr; 28 MmapMemPool *PoolManager::mmapMemPool_ = nullptr; 30 Arena *PoolManager::AllocArena(size_t size, SpaceType spaceType, AllocatorType allocatorType, const… in AllocArena() 40 void PoolManager::FreeArena(Arena *arena) in FreeArena() 48 void PoolManager::Initialize(PoolType type) in Initialize() 61 MmapMemPool *PoolManager::GetMmapMemPool() in GetMmapMemPool() 68 MallocMemPool *PoolManager::GetMallocMemPool() in GetMallocMemPool() 75 void PoolManager::Finalize() in Finalize()
|
D | pool_manager.h | 25 class PoolManager { 27 ~PoolManager() = default; 28 PoolManager() = default; 29 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(PoolManager); 30 DEFAULT_COPY_SEMANTIC(PoolManager);
|
D | arena_allocator.cpp | 34 …arenas_ = PoolManager::AllocArena(DEFAULT_ARENA_SIZE, spaceType_, AllocatorType::ARENA_ALLOCATOR, … in ArenaAllocatorT() 47 …arenas_ = PoolManager::AllocArena(DEFAULT_ARENA_SIZE, spaceType_, AllocatorType::ARENA_ALLOCATOR, … in ArenaAllocatorT() 59 PoolManager::FreeArena(cur); in ~ArenaAllocatorT() 131 PoolManager::FreeArena(arenas_); in Resize() 153 Arena *newArena = PoolManager::AllocArena(poolSize, spaceType_, GetAllocatorType(), this); in AddArenaFromPool()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
D | internal_allocator.cpp | 154 … auto pool = PoolManager::GetMmapMemPool()->AllocPool(poolSize, SpaceType::SPACE_TYPE_INTERNAL, in AllocInRunSlots() 205 auto pool = PoolManager::GetMmapMemPool()->AllocPool( in AllocViaPandaAllocators() 227 auto pool = PoolManager::GetMmapMemPool()->AllocPool( in AllocViaPandaAllocators() 242 AllocatorType allocType = PoolManager::GetMmapMemPool()->GetAllocatorInfoForAddr(ptr).GetType(); in FreeViaPandaAllocators() 245 … if (PoolManager::GetMmapMemPool()->GetAllocatorInfoForAddr(ptr).GetAllocatorHeaderAddr() == in FreeViaPandaAllocators() 254 … ASSERT(PoolManager::GetMmapMemPool()->GetAllocatorInfoForAddr(ptr).GetAllocatorHeaderAddr() == in FreeViaPandaAllocators() 261 … ASSERT(PoolManager::GetMmapMemPool()->GetAllocatorInfoForAddr(ptr).GetAllocatorHeaderAddr() == in FreeViaPandaAllocators() 267 … ASSERT(PoolManager::GetMmapMemPool()->GetAllocatorInfoForAddr(ptr).GetAllocatorHeaderAddr() == in FreeViaPandaAllocators() 304 …[](void *mem, [[maybe_unused]] size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); … in FinalizeLocalInternalAllocator() 317 …[](void *mem, [[maybe_unused]] size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); … in RemoveFreePoolsForLocalInternalAllocator()
|
D | heap_space.cpp | 86 size_t usedBytes = PoolManager::GetMmapMemPool()->GetObjectUsedBytes(); in GetCurrentFreeBytes() 113 return PoolManager::GetMmapMemPool()->GetObjectUsedBytes(); in GetHeapSize() 149 PoolManager::GetMmapMemPool()->ReleasePagesInFreePools(); in ClampCurrentMaxHeapSize() 161 return PoolManager::GetMmapMemPool()->template AllocPool<OSPagesAllocPolicy::NO_POLICY>( in TryAllocPoolBase() 164 return PoolManager::GetMmapMemPool()->template AllocPool<OSPagesAllocPolicy::ZEROED_MEMORY>( in TryAllocPoolBase() 186 return PoolManager::AllocArena(arenaSize, spaceType, allocatorType, allocatorPtr); in TryAllocArenaBase() 205 PoolManager::GetMmapMemPool()->FreePool<OSPagesPolicy::IMMEDIATE_RETURN>(poolMem, poolSize); in FreePool() 207 PoolManager::GetMmapMemPool()->FreePool<OSPagesPolicy::NO_RETURN>(poolMem, poolSize); in FreePool() 216 PoolManager::FreeArena(arena); in FreeArena() 334 …size_t usedBytesInSeparatePools = PoolManager::GetMmapMemPool()->GetObjectUsedBytes() - sharedPool… in GetHeapSize() [all …]
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
D | card_table_test.cpp | 95 return PoolManager::GetMmapMemPool()->GetMinObjectAddress(); in GetMinAddress() 100 return (PoolManager::GetMmapMemPool()->GetMaxObjectAddress() - in GetPoolSize() 101 PoolManager::GetMmapMemPool()->GetMinObjectAddress()); in GetPoolSize() 106 … return PoolManager::GetMmapMemPool()->GetMinObjectAddress() + addrDis_(gen_) % GetPoolSize(); in GetRandomAddress() 117 …return PoolManager::GetMmapMemPool()->GetMinObjectAddress() + GetRandomCardIndex() * CardTable::Ge… in GetRandomCardAddress()
|
D | internal_allocator_test.cpp | 31 PoolManager::Initialize(); in InternalAllocatorTest() 39 PoolManager::Finalize(); in ~InternalAllocatorTest() 64 size_t currentSpaceSize = PoolManager::GetMmapMemPool() in CheckFreeSpaceForPools() 67 …PoolManager::GetMmapMemPool()->nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_INTE… in CheckFreeSpaceForPools()
|
D | bump_allocator_test.cpp | 42 PoolManager::Initialize(); in BumpAllocatorTest() 53 PoolManager::Finalize(); in ~BumpAllocatorTest() 87 auto pool = PoolManager::GetMmapMemPool()->AllocPool(BUFF_SIZE, SpaceType::SPACE_TYPE_INTERNAL, in DEATH_TEST_F() 139 …auto pool = PoolManager::GetMmapMemPool()->AllocPool(TLAB_SIZE + COMMON_BUFFER_SIZE, SpaceType::SP… in TEST_F() 246 …auto pool = PoolManager::GetMmapMemPool()->AllocPool(TLAB_SIZE * TLAB_COUNT, SpaceType::SPACE_TYPE… in TEST_F()
|
D | humongous_obj_allocator_test.cpp | 41 PoolManager::Initialize(); in HumongousObjAllocatorTest() 47 PoolManager::Finalize(); in ~HumongousObjAllocatorTest() 69 … Pool pool = PoolManager::GetMmapMemPool()->AllocPool(AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES), in AddMemoryPoolToAllocator() 96 PoolManager::GetMmapMemPool()->FreePool(i.GetMem(), i.GetSize()); in ClearPoolManager()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
D | code_allocator_test.cpp | 50 PoolManager::Initialize(); in SetUp() 55 PoolManager::Finalize(); in TearDown()
|
D | arena_test.cpp | 33 PoolManager::Initialize(); in ArenaTest() 38 PoolManager::Finalize(); in ~ArenaTest() 51 … return PoolManager::GetMmapMemPool()->AllocArena<ArenaT>(size, SpaceType::SPACE_TYPE_INTERNAL, in CreateArena()
|
D | base_mem_stats_test.cpp | 31 PoolManager::Initialize(); in SetUp() 36 PoolManager::Finalize(); in TearDown()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | arena_test.cpp | 32 PoolManager::Initialize(); in ArenaTest() 37 PoolManager::Finalize(); in ~ArenaTest() 47 … return PoolManager::GetMmapMemPool()->AllocArena<ArenaT>(size, SpaceType::SPACE_TYPE_INTERNAL, in CreateArena()
|
D | code_allocator_test.cpp | 46 PoolManager::Initialize(); in SetUp() 51 PoolManager::Finalize(); in TearDown()
|
/arkcompiler/runtime_core/compiler/tests/ |
D | graph_test.h | 37 PoolManager::Initialize(PoolType::MALLOC); in GraphTest() 42 PoolManager::Finalize(); in ~GraphTest()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/ |
D | crossing_map_singleton.cpp | 38 …instance_ = allocator->New<CrossingMap>(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddr… in Create() 39 … PoolManager::GetMmapMemPool()->GetTotalObjectSize()); in Create()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/epsilon-g1/ |
D | epsilon-g1.cpp | 48 this->CreateCardTable(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddress(), in InitializeImpl() 49 PoolManager::GetMmapMemPool()->GetTotalObjectSize()); in InitializeImpl()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
D | main.cpp | 34 PoolManager::Initialize(PoolType::MMAP); in ProtoMemManager() 42 PoolManager::Finalize(); in ~ProtoMemManager()
|
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
D | register64_test.cpp | 36 PoolManager::Initialize(); in Register64Test() 42 PoolManager::Finalize(); in ~Register64Test()
|
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/ |
D | register64_test.cpp | 38 PoolManager::Initialize(); in Register64Test() 44 PoolManager::Finalize(); in ~Register64Test()
|
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/ |
D | register64_test.cpp | 38 PoolManager::Initialize(); in Register64Test() 44 PoolManager::Finalize(); in ~Register64Test()
|
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
D | register32_test.cpp | 35 PoolManager::Initialize(); in Register32Test() 41 PoolManager::Finalize(); in ~Register32Test()
|