Home
last modified time | relevance | path

Searched refs:PoolManager (Results 1 – 25 of 115) sorted by relevance

12345

/arkcompiler/runtime_core/libpandabase/mem/
Dpool_manager.cpp25 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()
Dpool_manager.h26 class PoolManager {
28 ~PoolManager() = default;
29 PoolManager() = default;
30 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(PoolManager);
31 DEFAULT_COPY_SEMANTIC(PoolManager);
Darena_allocator.cpp35 …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/
Dpool_manager.cpp25 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()
Dpool_manager.h25 class PoolManager {
27 ~PoolManager() = default;
28 PoolManager() = default;
29 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(PoolManager);
30 DEFAULT_COPY_SEMANTIC(PoolManager);
Darena_allocator.cpp34 …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/
Dinternal_allocator.cpp154 … 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()
Dheap_space.cpp86 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/
Dcard_table_test.cpp95 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()
Dinternal_allocator_test.cpp31 PoolManager::Initialize(); in InternalAllocatorTest()
39 PoolManager::Finalize(); in ~InternalAllocatorTest()
64 size_t currentSpaceSize = PoolManager::GetMmapMemPool() in CheckFreeSpaceForPools()
67PoolManager::GetMmapMemPool()->nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_INTE… in CheckFreeSpaceForPools()
Dbump_allocator_test.cpp42 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()
Dhumongous_obj_allocator_test.cpp41 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/
Dcode_allocator_test.cpp50 PoolManager::Initialize(); in SetUp()
55 PoolManager::Finalize(); in TearDown()
Darena_test.cpp33 PoolManager::Initialize(); in ArenaTest()
38 PoolManager::Finalize(); in ~ArenaTest()
51 … return PoolManager::GetMmapMemPool()->AllocArena<ArenaT>(size, SpaceType::SPACE_TYPE_INTERNAL, in CreateArena()
Dbase_mem_stats_test.cpp31 PoolManager::Initialize(); in SetUp()
36 PoolManager::Finalize(); in TearDown()
/arkcompiler/runtime_core/libpandabase/tests/
Darena_test.cpp32 PoolManager::Initialize(); in ArenaTest()
37 PoolManager::Finalize(); in ~ArenaTest()
47 … return PoolManager::GetMmapMemPool()->AllocArena<ArenaT>(size, SpaceType::SPACE_TYPE_INTERNAL, in CreateArena()
Dcode_allocator_test.cpp46 PoolManager::Initialize(); in SetUp()
51 PoolManager::Finalize(); in TearDown()
/arkcompiler/runtime_core/compiler/tests/
Dgraph_test.h37 PoolManager::Initialize(PoolType::MALLOC); in GraphTest()
42 PoolManager::Finalize(); in ~GraphTest()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/
Dcrossing_map_singleton.cpp38 …instance_ = allocator->New<CrossingMap>(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddr… in Create()
39PoolManager::GetMmapMemPool()->GetTotalObjectSize()); in Create()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/epsilon-g1/
Depsilon-g1.cpp48 this->CreateCardTable(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddress(), in InitializeImpl()
49 PoolManager::GetMmapMemPool()->GetTotalObjectSize()); in InitializeImpl()
/arkcompiler/ets_frontend/merge_abc/src/
Dmain.cpp34 PoolManager::Initialize(PoolType::MMAP); in ProtoMemManager()
42 PoolManager::Finalize(); in ~ProtoMemManager()
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dregister64_test.cpp36 PoolManager::Initialize(); in Register64Test()
42 PoolManager::Finalize(); in ~Register64Test()
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/
Dregister64_test.cpp38 PoolManager::Initialize(); in Register64Test()
44 PoolManager::Finalize(); in ~Register64Test()
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
Dregister64_test.cpp38 PoolManager::Initialize(); in Register64Test()
44 PoolManager::Finalize(); in ~Register64Test()
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dregister32_test.cpp35 PoolManager::Initialize(); in Register32Test()
41 PoolManager::Finalize(); in ~Register32Test()

12345