Home
last modified time | relevance | path

Searched refs:Pool (Results 1 – 25 of 32) sorted by relevance

12

/arkcompiler/runtime_core/libpandabase/mem/
Dmem_pool.h27 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,
Dmmap_mem_pool.h38 …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);
189Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *al…
196Pool 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 …]
Dmmap_mem_pool-inl.h32 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 …]
Dmalloc_mem_pool-inl.h73 inline Pool MallocMemPool::AllocPoolImpl(size_t size, [[maybe_unused]] SpaceType space_type, in AllocPoolImpl()
82 return Pool(size, mem); in AllocPoolImpl()
Dmalloc_mem_pool.h32 static Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type,
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Dmem_pool.h37 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};
131Pool AllocPool(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *allocato…
[all …]
Dmmap_mem_pool.h39 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);
213Pool AllocPoolImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, const void *allo…
222Pool 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 …]
Dmmap_mem_pool-inl.h38 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()
234Pool 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 …]
Dmalloc_mem_pool-inl.h78 inline Pool MallocMemPool::AllocPoolImpl(size_t size, [[maybe_unused]] SpaceType spaceType, in AllocPoolImpl()
90 return Pool(size, mem); in AllocPoolImpl()
Dmalloc_mem_pool.h33 …static Pool AllocPoolImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, const voi…
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dpool_map_test.cpp50 …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()
Dmmap_mem_pool_test.cpp56 std::array<Pool, POOL_COUNT> pools {{NULLPOOL, NULLPOOL, NULLPOOL}}; in ReturnedToOsTest()
57 Pool fourthPool = NULLPOOL; in ReturnedToOsTest()
210Pool poolWithAllocAddr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE, a… in TEST_F()
211Pool poolWithoutAllocAddr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE… in TEST_F()
239Pool objectPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOC… in TEST_F()
240Pool internalPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP_A… in TEST_F()
241Pool codePool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCATOR… in TEST_F()
242Pool compilerPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP_A… in TEST_F()
243Pool framesPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_FRAMES, AllocatorType::BUMP_ALLOC… in TEST_F()
244Pool stacksPool = memPool->AllocPool(1_GB, SpaceType::SPACE_TYPE_NATIVE_STACKS, AllocatorType::BUM… in TEST_F()
/arkcompiler/runtime_core/libpandabase/tests/
Dpool_map_test.cpp46 …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));
Dmmap_mem_pool_test.cpp107Pool pool_with_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_TYPE…
108Pool pool_without_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType::SPACE_TYPE_OBJECT, ALLOC_T…
137Pool object_pool = mem_pool->AllocPool(1_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALL…
138Pool internal_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP…
139Pool code_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCAT…
140Pool compiler_pool = mem_pool->AllocPool(2_MB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP…
/arkcompiler/runtime_core/static_core/runtime/mem/
Dheap_space.h94 …[[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…
Dheap_space.cpp152 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()
Dbump-allocator.h78 explicit BumpPointerAllocator(Pool pool, SpaceType typeAllocation, MemStatsType *memStats,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/mem/items_pool/
Dtest_items_pool.cpp29 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/
Dobj_pool_test.cpp32 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/
Dhumongous_obj_allocator_test.cpp69Pool pool = PoolManager::GetMmapMemPool()->AllocPool(AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES), in AddMemoryPoolToAllocator()
102 std::vector<Pool> allocatedPoolsByPoolManager_;
Dfreelist_allocator_test.cpp72Pool 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/
Dcode_style_check.py79 pool = multiprocessing.Pool(proc_count)
Dclang_tidy_rename.py90 pool = multiprocessing.Pool(multiprocessing.cpu_count())
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
Dpreparation_step.py128 with multiprocessing.Pool(processes=self.config.general.processes) as pool:
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/
Dclang_tidy_check.py251 pool = multiprocessing.Pool(proc_count)

12