/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | mem_pool.h | 27 class Pool { class 29 explicit constexpr Pool(size_t size, void *mem) : size_(size), mem_(mem) {} in Pool() function in panda::Pool 30 explicit Pool(std::pair<size_t, void *> pool) : size_(pool.first), mem_(pool.second) {} in Pool() function in panda::Pool 42 bool operator==(const Pool &other) const in operator ==() 47 bool operator!=(const Pool &other) const in operator !=() 52 ~Pool() = default; 54 DEFAULT_COPY_SEMANTIC(Pool); 55 DEFAULT_MOVE_SEMANTIC(Pool); 62 constexpr Pool NULLPOOL {0, nullptr}; 111 Pool AllocPoo [all...] |
H A D | mmap_mem_pool.h | 38 explicit MmapPool(Pool pool, FreePoolsIter free_pools_iter) : pool_(pool), free_pools_iter_(free_pools_iter) {} in MmapPool() 52 pool_ = Pool(size, GetMem()); in SetSize() 78 Pool pool_; 98 Pool PopFreePool(size_t size); 101 void PushFreePool(Pool pool); 104 void AddNewPool(Pool pool); 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); 204 void AddToNonObjectPoolsMap(std::tuple<Pool, AllocatorInfo, SpaceType> pool_info); 206 std::tuple<Pool, AllocatorInf [all...] |
H A D | mmap_mem_pool-inl.h | 32 inline Pool MmapPoolMap::PopFreePool(size_t size) in PopFreePool() 45 Pool pool(size, element_mem); in PopFreePool() 48 Pool new_pool(element_size - size, ToVoidPtr(ToUintPtr(element_mem) + size)); in PopFreePool() 58 inline void MmapPoolMap::PushFreePool(Pool pool) in PushFreePool() 91 inline void MmapPoolMap::AddNewPool(Pool pool) in AddNewPool() 154 Pool pool = std::get<0>(i.second); in ~MmapMemPool() 186 Pool pool_for_arena = AllocPoolUnsafe(size, space_type, allocator_type, allocator_addr); in AllocArenaImpl() 312 inline Pool MmapMemPool::AllocPoolUnsafe(size_t size, SpaceType space_type, AllocatorType allocator_type, in AllocPoolUnsafe() 317 Pool pool = NULLPOOL; in AllocPoolUnsafe() 343 pool = Pool(siz in AllocPoolUnsafe() [all...] |
H A D | malloc_mem_pool-inl.h | 73 inline Pool MallocMemPool::AllocPoolImpl(size_t size, [[maybe_unused]] SpaceType space_type, in AllocPoolImpl() 82 return Pool(size, mem); in AllocPoolImpl()
|
H A D | malloc_mem_pool.h | 23 // Simple Mem Pool without cache 32 static Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type,
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | mem_pool.h | 37 class Pool { class 39 explicit constexpr Pool(size_t size, void *mem) : size_(size), mem_(mem) {} in Pool() function in ark::Pool 40 explicit Pool(std::pair<size_t, void *> pool) : size_(pool.first), mem_(pool.second) {} in Pool() function in ark::Pool 52 bool operator==(const Pool &other) const in operator ==() 57 bool operator!=(const Pool &other) const in operator !=() 62 ~Pool() = default; 64 DEFAULT_COPY_SEMANTIC(Pool); 65 DEFAULT_MOVE_SEMANTIC(Pool); 72 constexpr Pool NULLPOOL {0, nullptr}; 131 Pool AllocPoo [all...] |
H A D | mmap_mem_pool.h | 41 explicit MmapPool(Pool pool, FreePoolsIter freePoolsIter, bool returnedToOs = true) in MmapPool() 68 pool_ = Pool(size, GetMem()); in SetSize() 94 Pool pool_; 115 Pool GetAndClearUnreturnedPool(size_t size) in GetAndClearUnreturnedPool() 121 return Pool(size, unreturnedMem); in GetAndClearUnreturnedPool() 168 Pool PopFreePool(size_t size); 174 [[nodiscard]] std::pair<size_t, OSPagesPolicy> PushFreePool(Pool pool); 177 void AddNewPool(Pool pool); 283 Pool AllocPoolImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *allocatorAddr); 292 Pool AllocPoolUnsaf [all...] |
H A D | mmap_mem_pool-inl.h | 38 inline Pool MmapPoolMap::PopFreePool(size_t size) in PopFreePool() 55 Pool pool(size, elementMem); in PopFreePool() 58 Pool newPool(elementSize - size, ToVoidPtr(ToUintPtr(elementMem) + size)); in PopFreePool() 69 LOG_MMAP_MEM_POOL(DEBUG) << "Return pages to OS from Free Pool to get zeroed memory: start = " << pool.GetMem() in PopFreePool() 77 inline std::pair<size_t, OSPagesPolicy> MmapPoolMap::PushFreePool(Pool pool) in PushFreePool() 133 inline void MmapPoolMap::AddNewPool(Pool pool) in AddNewPool() 223 LOG_MMAP_MEM_POOL(DEBUG) << "Return pages to OS from Free Pool: start = " << pool.GetMem() << " with size " in ReleasePagesInUnreturnedPool() 234 LOG_MMAP_MEM_POOL(DEBUG) << "Return pages to OS from Free Pool: start = " << pool->GetMem() << " with size " in ReleasePagesInFreePools() 244 Pool pool = std::get<0>(i.second); in ClearNonObjectMmapedPools() 280 Pool poolForAren in AllocArenaImpl() [all...] |
H A D | malloc_mem_pool.h | 23 // Simple Mem Pool without cache 33 static Pool AllocPoolImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *allocatorAddr);
|
H A D | malloc_mem_pool-inl.h | 78 inline Pool MallocMemPool::AllocPoolImpl(size_t size, [[maybe_unused]] SpaceType spaceType, in AllocPoolImpl() 90 return Pool(size, mem); in AllocPoolImpl()
|
/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() 55 void RemovePoolFromMap(Pool pool) in RemovePoolFromMap() 93 void CheckRandomPoolAddress(Pool pool, SpaceType space_type, AllocatorType allocator_type, uintptr_t allocator_addr) in CheckRandomPoolAddress() 102 void *RandAddrFromPool(Pool pool) const in RandAddrFromPool() 130 std::vector<Pool> pools_; 147 Pool first_pool(FIRST_POOL_SIZE, ToVoidPtr(FIRST_POOL_ADDR)); in HWTEST_F() 148 Pool second_pool(SECOND_POOL_SIZE, ToVoidPtr(SECOND_POOL_ADDR)); in HWTEST_F() 177 Pool pool(pool_size, ToVoidPtr(POOL_START_ADDR)); in HWTEST_F()
|
H A D | mmap_mem_pool_test.cpp | 107 Pool pool_with_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE, allocator_addr); in HWTEST_F() 108 Pool pool_without_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE); in HWTEST_F() 137 Pool object_pool = mem_pool->AllocPool(1_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F() 138 Pool internal_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F() 139 Pool code_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F() 140 Pool compiler_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | pool_map_test.cpp | 50 void AddToPoolMap(Pool pool, SpaceType spaceType, AllocatorType allocatorType, void *allocatorAddr = nullptr) in AddToPoolMap() 59 void RemovePoolFromMap(Pool pool) in RemovePoolFromMap() 100 void CheckRandomPoolAddress(Pool pool, SpaceType spaceType, AllocatorType allocatorType, uintptr_t allocatorAddr) in CheckRandomPoolAddress() 109 void *RandAddrFromPool(Pool pool) const in RandAddrFromPool() 138 std::vector<Pool> pools_; 155 Pool firstPool(FIRST_POOL_SIZE, ToVoidPtr(FIRST_POOL_ADDR)); in TEST_F() 156 Pool secondPool(SECOND_POOL_SIZE, ToVoidPtr(SECOND_POOL_ADDR)); in TEST_F() 184 Pool pool(poolSize, ToVoidPtr(POOL_START_ADDR)); in TEST_F()
|
H A D | mmap_mem_pool_test.cpp | 49 void FreePoolWithPolicy(MmapMemPool *memPool, OSPagesPolicy policy, Pool &pool) in FreePoolWithPolicy() 65 std::array<Pool, POOL_COUNT> pools {{NULLPOOL, NULLPOOL, NULLPOOL}}; in ReturnedToOsTest() 66 Pool fourthPool = NULLPOOL; in ReturnedToOsTest() 207 Pool poolWithAllocAddr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE, allocatorAddr); in TEST_F() 208 Pool poolWithoutAllocAddr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE); in TEST_F() 236 Pool objectPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOCATOR); in TEST_F() 237 Pool internalPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP_ALLOCATOR); in TEST_F() 238 Pool codePool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCATOR); in TEST_F() 239 Pool compilerPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP_ALLOCATOR); in TEST_F() 240 Pool framesPoo in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | heap_space.h | 59 // | Pool +-------------+ 94 [[nodiscard]] virtual Pool TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 193 [[nodiscard]] Pool TryAllocPoolBase(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 329 [[nodiscard]] Pool AllocAlonePoolForYoung(SpaceType spaceType, AllocatorType allocatorType, void *allocatorPtr); 335 [[nodiscard]] Pool TryAllocPoolForYoung(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 342 [[nodiscard]] Pool TryAllocPoolForTenured(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 346 [[nodiscard]] Pool TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 356 [[nodiscard]] Pool AllocSharedPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType,
|
H A D | heap_space.cpp | 152 inline Pool HeapSpace::TryAllocPoolBase(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, in TryAllocPoolBase() 172 Pool HeapSpace::TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, void *allocatorPtr) in TryAllocPool() 367 Pool GenerationalSpaces::AllocSharedPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, in AllocSharedPool() 377 Pool GenerationalSpaces::AllocAlonePoolForYoung(SpaceType spaceType, AllocatorType allocatorType, void *allocatorPtr) in AllocAlonePoolForYoung() 387 Pool GenerationalSpaces::TryAllocPoolForYoung(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, in TryAllocPoolForYoung() 397 Pool GenerationalSpaces::TryAllocPoolForTenured(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, in TryAllocPoolForTenured() 405 Pool GenerationalSpaces::TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, in TryAllocPool()
|
H A D | bump-allocator.h | 50 // | Memory Pool | 78 explicit BumpPointerAllocator(Pool pool, SpaceType typeAllocation, MemStatsType *memStats,
|
/arkcompiler/runtime_core/static_core/verification/util/tests/ |
H A D | obj_pool_test.cpp | 32 struct Pool : public ObjPool<S, std::vector, I, C> { struct 33 Pool(I i, C c) : ObjPool<S, std::vector, I, C> {i, c} {} in Pool() function 39 static void VerifierTestObjPool1(Pool<I, C> &pool, int &result) in VerifierTestObjPool1() 93 static void VerifierTestObjPool2(Pool<I, C> &pool, int &result) in VerifierTestObjPool2() 117 static void VerifierTestObjPool3(Pool<I, C> &pool, int &result) in VerifierTestObjPool3() 178 Pool pool {h, [&result](S &s) { result -= s.a; }}; in TEST()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/mem/items_pool/ |
H A D | test_items_pool.cpp | 29 using Pool = ItemsPool<Item, 3U>; 30 using PaddedItem = Pool::PaddedItem; 34 static PaddedItem *GetData(const std::unique_ptr<Pool> &pool) in GetData() 39 static PaddedItem *&GetCurrentPos(const std::unique_ptr<Pool> &pool) in GetCurrentPos() 44 static PaddedItem *&GetFreeList(const std::unique_ptr<Pool> &pool) in GetFreeList() 49 static std::unique_ptr<Pool> CreatePool() in CreatePool() 51 size_t size = Pool::MAX_POOL_SIZE; in CreatePool() 55 std::cerr << "Cannot allocate Pool, size=" << std::hex << size << std::dec << std::endl; in CreatePool() 58 return std::make_unique<Pool>(data, size); in CreatePool()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | humongous_obj_allocator_test.cpp | 69 Pool pool = PoolManager::GetMmapMemPool()->AllocPool(AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES), in AddMemoryPoolToAllocator() 102 std::vector<Pool> allocatedPoolsByPoolManager_;
|
H A D | freelist_allocator_test.cpp | 72 Pool pool = PoolManager::GetMmapMemPool()->AllocPool(DEFAULT_POOL_SIZE_FOR_ALLOC, SpaceType::SPACE_TYPE_OBJECT, 109 std::vector<Pool> allocatedPoolsByPoolManager_;
|
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
H A D | code_style_check.py | 82 pool = multiprocessing.Pool(proc_count)
|
H A D | clang_tidy_rename.py | 84 pool = multiprocessing.Pool(multiprocessing.cpu_count())
|
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
H A D | clang_tidy_check.py | 255 pool = multiprocessing.Pool(proc_count)
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ |
H A D | preparation_step.py | 209 with multiprocessing.Pool(processes=self.config.general.processes) as pool:
|