/arkcompiler/runtime_core/libpandabase/mem/ |
D | mem_pool.h | 27 class Pool { 29 explicit constexpr Pool(size_t size, void *mem) : size_(size), mem_(mem) {} in Pool() function 30 explicit Pool(std::pair<size_t, void *> pool) : size_(pool.first), mem_(pool.second) {} in Pool() function 42 bool operator==(const Pool &other) const 47 bool operator!=(const Pool &other) const 52 ~Pool() = default; 54 DEFAULT_COPY_SEMANTIC(Pool); 55 DEFAULT_MOVE_SEMANTIC(Pool); 62 constexpr Pool NULLPOOL {0, nullptr}; 111 Pool AllocPool(size_t size, SpaceType space_type, AllocatorType allocator_type,
|
D | mmap_mem_pool.h | 38 …explicit MmapPool(Pool pool, FreePoolsIter free_pools_iter) : pool_(pool), free_pools_iter_(free_p… 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); 189 …Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *al… 196 …Pool AllocPoolUnsafe(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *… 199 void AddToNonObjectPoolsMap(std::tuple<Pool, AllocatorInfo, SpaceType> pool_info); 201 std::tuple<Pool, AllocatorInfo, SpaceType> FindAddrInNonObjectPoolsMap(const void *addr) const; [all …]
|
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… in AllocPoolUnsafe() 317 Pool pool = NULLPOOL; in AllocPoolUnsafe() 343 pool = Pool(size, mem); in AllocPoolUnsafe() [all …]
|
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()
|
D | malloc_mem_pool.h | 32 static Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type,
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
D | mem_pool.h | 37 class Pool { 39 explicit constexpr Pool(size_t size, void *mem) : size_(size), mem_(mem) {} in Pool() function 40 explicit Pool(std::pair<size_t, void *> pool) : size_(pool.first), mem_(pool.second) {} in Pool() function 52 bool operator==(const Pool &other) const 57 bool operator!=(const Pool &other) const 62 ~Pool() = default; 64 DEFAULT_COPY_SEMANTIC(Pool); 65 DEFAULT_MOVE_SEMANTIC(Pool); 72 constexpr Pool NULLPOOL {0, nullptr}; 131 …Pool AllocPool(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *allocato… [all …]
|
D | mmap_mem_pool.h | 39 explicit MmapPool(Pool pool, FreePoolsIter freePoolsIter, bool returnedToOs = true) 66 pool_ = Pool(size, GetMem()); in SetSize() 92 Pool pool_; 114 Pool PopFreePool(size_t size); 120 [[nodiscard]] std::pair<size_t, OSPagesPolicy> PushFreePool(Pool pool); 123 void AddNewPool(Pool pool); 213 …Pool AllocPoolImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *allo… 222 …Pool AllocPoolUnsafe(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *al… 226 void AddToNonObjectPoolsMap(std::tuple<Pool, AllocatorInfo, SpaceType> poolInfo); 228 std::tuple<Pool, AllocatorInfo, SpaceType> FindAddrInNonObjectPoolsMap(const void *addr) const; [all …]
|
D | mmap_mem_pool-inl.h | 38 inline Pool MmapPoolMap::PopFreePool(size_t size) in PopFreePool() 51 Pool pool(size, elementMem); in PopFreePool() 54 Pool newPool(elementSize - size, ToVoidPtr(ToUintPtr(elementMem) + size)); in PopFreePool() 73 inline std::pair<size_t, OSPagesPolicy> MmapPoolMap::PushFreePool(Pool pool) in PushFreePool() 127 inline void MmapPoolMap::AddNewPool(Pool pool) in AddNewPool() 198 Pool pool = std::get<0>(i.second); in ClearNonObjectMmapedPools() 234 …Pool poolForArena = AllocPoolUnsafe<OS_ALLOC_POLICY>(size, spaceType, allocatorType, allocatorAddr… in AllocArenaImpl() 338 inline Pool MmapMemPool::AllocPoolUnsafe(size_t size, SpaceType spaceType, AllocatorType allocatorT… in AllocPoolUnsafe() 343 Pool pool = NULLPOOL; in AllocPoolUnsafe() 371 pool = Pool(size, mem); in AllocPoolUnsafe() [all …]
|
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()
|
D | malloc_mem_pool.h | 33 …static Pool AllocPoolImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, const voi…
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
D | pool_map_test.cpp | 50 …void AddToPoolMap(Pool pool, SpaceType spaceType, AllocatorType allocatorType, void *allocatorAddr… in AddToPoolMap() 59 void RemovePoolFromMap(Pool pool) in RemovePoolFromMap() 100 …void CheckRandomPoolAddress(Pool pool, SpaceType spaceType, AllocatorType allocatorType, uintptr_t… 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()
|
D | mmap_mem_pool_test.cpp | 56 std::array<Pool, POOL_COUNT> pools {{NULLPOOL, NULLPOOL, NULLPOOL}}; in ReturnedToOsTest() 57 Pool fourthPool = NULLPOOL; in ReturnedToOsTest() 210 …Pool poolWithAllocAddr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE, a… in TEST_F() 211 …Pool poolWithoutAllocAddr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE… in TEST_F() 239 …Pool objectPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOC… in TEST_F() 240 …Pool internalPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP_A… in TEST_F() 241 …Pool codePool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCATOR… in TEST_F() 242 …Pool compilerPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP_A… in TEST_F() 243 …Pool framesPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_FRAMES, AllocatorType::BUMP_ALLOC… in TEST_F() 244 …Pool stacksPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_NATIVE_STACKS, AllocatorType::BUM… in TEST_F()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | pool_map_test.cpp | 46 …void AddToPoolMap(Pool pool, SpaceType space_type, AllocatorType allocator_type, void *allocator_a… in AddToPoolMap() 55 void RemovePoolFromMap(Pool pool) in RemovePoolFromMap() 93 …void CheckRandomPoolAddress(Pool pool, SpaceType space_type, AllocatorType allocator_type, uintptr… 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)); 148 Pool second_pool(SECOND_POOL_SIZE, ToVoidPtr(SECOND_POOL_ADDR)); 177 Pool pool(pool_size, ToVoidPtr(POOL_START_ADDR));
|
D | mmap_mem_pool_test.cpp | 107 …Pool pool_with_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE… 108 …Pool pool_without_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_T… 137 …Pool object_pool = mem_pool->AllocPool(1_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALL… 138 …Pool internal_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP… 139 …Pool code_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCAT… 140 …Pool compiler_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP…
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
D | heap_space.h | 94 …[[nodiscard]] virtual Pool TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType alloca… 193 …[[nodiscard]] Pool TryAllocPoolBase(size_t poolSize, SpaceType spaceType, AllocatorType allocatorT… 329 …[[nodiscard]] Pool AllocAlonePoolForYoung(SpaceType spaceType, AllocatorType allocatorType, void *… 335 …[[nodiscard]] Pool TryAllocPoolForYoung(size_t poolSize, SpaceType spaceType, AllocatorType alloca… 342 …[[nodiscard]] Pool TryAllocPoolForTenured(size_t poolSize, SpaceType spaceType, AllocatorType allo… 346 … [[nodiscard]] Pool TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, 356 …[[nodiscard]] Pool AllocSharedPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorTy…
|
D | heap_space.cpp | 152 inline Pool HeapSpace::TryAllocPoolBase(size_t poolSize, SpaceType spaceType, AllocatorType allocat… in TryAllocPoolBase() 172 Pool HeapSpace::TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, voi… in TryAllocPool() 367 Pool GenerationalSpaces::AllocSharedPool(size_t poolSize, SpaceType spaceType, AllocatorType alloca… in AllocSharedPool() 377 Pool GenerationalSpaces::AllocAlonePoolForYoung(SpaceType spaceType, AllocatorType allocatorType, v… in AllocAlonePoolForYoung() 387 Pool GenerationalSpaces::TryAllocPoolForYoung(size_t poolSize, SpaceType spaceType, AllocatorType a… in TryAllocPoolForYoung() 397 Pool GenerationalSpaces::TryAllocPoolForTenured(size_t poolSize, SpaceType spaceType, AllocatorType… in TryAllocPoolForTenured() 405 Pool GenerationalSpaces::TryAllocPool(size_t poolSize, SpaceType spaceType, AllocatorType allocator… in TryAllocPool()
|
D | bump-allocator.h | 78 explicit BumpPointerAllocator(Pool pool, SpaceType typeAllocation, MemStatsType *memStats,
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/mem/items_pool/ |
D | test_items_pool.cpp | 29 using Pool = ItemsPool<Item, 3U>; typedef in panda::ets::interop::js::ets_proxy::testing::ItemsPoolTest 30 using PaddedItem = Pool::PaddedItem; 33 static uintptr_t GetData(const std::unique_ptr<Pool> &pool) in GetData() 38 static uintptr_t &GetCurrentPos(const std::unique_ptr<Pool> &pool) in GetCurrentPos() 43 static uintptr_t &GetFreeList(const std::unique_ptr<Pool> &pool) in GetFreeList() 48 static std::unique_ptr<Pool> CreatePool() in CreatePool() 50 size_t size = Pool::MAX_POOL_SIZE; in CreatePool() 57 return std::make_unique<Pool>(data, size); in CreatePool()
|
/arkcompiler/runtime_core/static_core/verification/util/tests/ |
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 46 Pool pool {h, [&result](S &s) { result -= s.a; }}; in TEST()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
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_;
|
D | freelist_allocator_test.cpp | 72 …Pool pool = PoolManager::GetMmapMemPool()->AllocPool(DEFAULT_POOL_SIZE_FOR_ALLOC, SpaceType::SPACE… in AddMemoryPoolToAllocator() 109 std::vector<Pool> allocatedPoolsByPoolManager_;
|
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
D | code_style_check.py | 79 pool = multiprocessing.Pool(proc_count)
|
D | clang_tidy_rename.py | 90 pool = multiprocessing.Pool(multiprocessing.cpu_count())
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ |
D | preparation_step.py | 128 with multiprocessing.Pool(processes=self.config.general.processes) as pool:
|
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
D | clang_tidy_check.py | 251 pool = multiprocessing.Pool(proc_count)
|