Home
last modified time | relevance | path

Searched refs:GetMem (Results 1 - 25 of 37) sorted by relevance

12

/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dmmap_mem_pool_test.cpp52 memPool->template FreePool<OSPagesPolicy::NO_RETURN>(pool.GetMem(), pool.GetSize()); in FreePoolWithPolicy()
54 memPool->template FreePool<OSPagesPolicy::IMMEDIATE_RETURN>(pool.GetMem(), pool.GetSize()); in FreePoolWithPolicy()
70 ASSERT_TRUE(pools[i].GetMem() != nullptr); in ReturnedToOsTest()
71 FillMemory(pools[i].GetMem(), pools[i].GetSize()); in ReturnedToOsTest()
75 ASSERT_TRUE(fourthPool.GetMem() != nullptr); in ReturnedToOsTest()
76 FillMemory(fourthPool.GetMem(), fourthPool.GetSize()); in ReturnedToOsTest()
86 ASSERT_TRUE(finalPool.GetMem() != nullptr); in ReturnedToOsTest()
87 IsZeroMemory(finalPool.GetMem(), finalPool.GetSize()); in ReturnedToOsTest()
88 memPool->FreePool(finalPool.GetMem(), finalPool.GetSize()); in ReturnedToOsTest()
94 ASSERT_TRUE(pools[i].GetMem() ! in ReturnedToOsTest()
[all...]
H A Dpool_map_test.cpp53 allocatorAddr = pool.GetMem(); in AddToPoolMap()
56 poolMap_.AddPoolToMap(pool.GetMem(), pool.GetSize(), spaceType, allocatorType, allocatorAddr); in AddToPoolMap()
64 poolMap_.RemovePoolFromMap(pool.GetMem(), pool.GetSize()); in RemovePoolFromMap()
70 poolMap_.RemovePoolFromMap(i.GetMem(), i.GetSize()); in ResetPoolMap()
112 return ToVoidPtr(ToUintPtr(pool.GetMem()) + rand() % pool.GetSize()); in RandAddrFromPool()
/arkcompiler/runtime_core/libpandabase/tests/
H A Dmmap_mem_pool_test.cpp66 ASSERT_TRUE(pool1.GetMem() != nullptr); in HWTEST_F()
68 ASSERT_TRUE(pool2.GetMem() == nullptr); in HWTEST_F()
70 ASSERT_TRUE(pool3.GetMem() == nullptr); in HWTEST_F()
72 ASSERT_TRUE(pool4.GetMem() == nullptr); in HWTEST_F()
74 memPool->FreePool(pool1.GetMem(), pool1.GetSize()); in HWTEST_F()
82 ASSERT_TRUE(pool1.GetMem() != nullptr); in HWTEST_F()
84 ASSERT_TRUE(pool2.GetMem() == nullptr); in HWTEST_F()
86 ASSERT_TRUE(pool3.GetMem() != nullptr); in HWTEST_F()
88 ASSERT_TRUE(pool4.GetMem() != nullptr); in HWTEST_F()
90 ASSERT_TRUE(pool5.GetMem() ! in HWTEST_F()
[all...]
H A Dpool_map_test.cpp49 allocator_addr = pool.GetMem(); in AddToPoolMap()
52 pool_map_.AddPoolToMap(pool.GetMem(), pool.GetSize(), space_type, allocator_type, allocator_addr); in AddToPoolMap()
60 pool_map_.RemovePoolFromMap(pool.GetMem(), pool.GetSize()); in RemovePoolFromMap()
66 pool_map_.RemovePoolFromMap(i.GetMem(), i.GetSize()); in ResetPoolMap()
104 return ToVoidPtr(ToUintPtr(pool.GetMem()) + rand() % pool.GetSize()); in RandAddrFromPool()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dmem_map_allocator.cpp35 if (ToUintPtr(memMap.GetMem()) >= ToUintPtr(addr)) { in InitializeRegularRegionMap()
36 PageTag(memMap.GetMem(), memMap.GetSize(), PageTagType::MEMPOOL_CACHE); in InitializeRegularRegionMap()
37 PageRelease(memMap.GetMem(), memMap.GetSize()); in InitializeRegularRegionMap()
59 if (ToUintPtr(memMap.GetMem()) >= ToUintPtr(addr) || i == MEM_MAP_RETRY_NUM) { in InitializeHugeRegionMap()
60 PageTag(memMap.GetMem(), memMap.GetSize(), PageTagType::MEMPOOL_CACHE); in InitializeHugeRegionMap()
61 PageRelease(memMap.GetMem(), memMap.GetSize()); in InitializeHugeRegionMap()
72 PageTag(hugeMemMap.GetMem(), hugeMemMap.GetSize(), PageTagType::MEMPOOL_CACHE); in InitializeHugeRegionMap()
73 PageRelease(hugeMemMap.GetMem(), hugeMemMap.GetSize()); in InitializeHugeRegionMap()
113 if (mem.GetMem() != nullptr) { in Allocate()
114 bool res = PageProtectMem(isMachineCode, mem.GetMem(), me in Allocate()
[all...]
H A Dmem_map_allocator.h110 auto remainderMem = reinterpret_cast<uintptr_t>(memMap.GetMem()) + REGULAR_MMAP_SIZE; in SplitMemFromCache()
117 return MemMap(memMap.GetMem(), REGULAR_MMAP_SIZE); in SplitMemFromCache()
122 auto memAddr = reinterpret_cast<uintptr_t>(memMap.GetMem()); in SplitMemMapToCache()
175 void *startMem = (*it).second.GetMem(); in MergeList()
182 while (it != freeList_.end() && next == (*it).second.GetMem()) { in MergeList()
221 auto next = reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(memMap.GetMem()) + size); in GetMemFromList()
225 return MemMap(memMap.GetMem(), size); in GetMemFromList()
H A Dlinear_space.cpp178 PageTag(memMap_.GetMem(), memMap_.GetSize(), PageTagType::HEAP, ToSpaceTypeName(MemSpaceType::EDEN_SPACE), in EdenSpace()
180 auto mem = ToUintPtr(memMap_.GetMem()); in EdenSpace()
260 auto mem = reinterpret_cast<uintptr_t>(memmap.GetMem()); in AllocRegion()
H A Dheap_region_allocator.cpp43 void *mapMem = pool.GetMem(); in AllocateAlignedRegion()
/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Dmmap_mem_pool-inl.h48 auto elementMem = mmapPool->GetMem(); in PopFreePool()
61 poolMap_.insert(std::pair<void *, MmapPool *>(newPool.GetMem(), newMmapPool)); in PopFreePool()
67 uintptr_t poolStart = ToUintPtr(pool.GetMem()); in PopFreePool()
69 LOG_MMAP_MEM_POOL(DEBUG) << "Return pages to OS from Free Pool to get zeroed memory: start = " << pool.GetMem() in PopFreePool()
80 auto mmapPoolElement = poolMap_.find(pool.GetMem()); in PushFreePool()
91 ASSERT(ToUintPtr(prevPool->GetMem()) + prevPool->GetSize() == ToUintPtr(mmapPool->GetMem())); in PushFreePool()
103 ASSERT(ToUintPtr(mmapPool->GetMem()) + mmapPool->GetSize() == ToUintPtr(nextPool->GetMem())); in PushFreePool()
136 poolMap_.insert(std::pair<void *, MmapPool *>(pool.GetMem(), newMmapPoo in AddNewPool()
[all...]
H A Dmem_pool.h47 void *GetMem() in GetMem() function in ark::Pool
102 CheckZeroedMemory(allocatedArena->GetMem(), allocatedArena->GetSize()); in AllocArena()
136 if (allocatedPool.GetMem() != nullptr) { in AllocPool()
137 CheckZeroedMemory(allocatedPool.GetMem(), allocatedPool.GetSize()); in AllocPool()
H A Dmmap_mem_pool.h68 pool_ = Pool(size, GetMem()); in SetSize()
71 void *GetMem() in GetMem() function in ark::mem::MmapPool
73 return pool_.GetMem(); in GetMem()
119 auto unreturnedMem = ToVoidPtr(ToUintPtr(pool_->GetMem()) + returnedToOsSize_); in GetAndClearUnreturnedPool()
/arkcompiler/runtime_core/libpandabase/mem/
H A Dmmap_mem_pool-inl.h42 auto element_mem = mmap_pool->GetMem(); in PopFreePool()
51 pool_map_.insert(std::pair<void *, MmapPool *>(new_pool.GetMem(), new_mmap_pool)); in PopFreePool()
60 auto mmap_pool_element = pool_map_.find(pool.GetMem()); in PushFreePool()
70 ASSERT(ToUintPtr(prev_pool->GetMem()) + prev_pool->GetSize() == ToUintPtr(mmap_pool->GetMem())); in PushFreePool()
80 ASSERT(ToUintPtr(mmap_pool->GetMem()) + mmap_pool->GetSize() == ToUintPtr(next_pool->GetMem())); in PushFreePool()
94 pool_map_.insert(std::pair<void *, MmapPool *>(pool.GetMem(), new_mmap_pool)); in AddNewPool()
161 FreeRawMemImpl(pool.GetMem(), pool.GetSize()); in ~MmapMemPool()
187 void *mem = pool_for_arena.GetMem(); in AllocArenaImpl()
[all...]
H A Dmmap_mem_pool.h52 pool_ = Pool(size, GetMem()); in SetSize()
55 void *GetMem() in GetMem() function in panda::mem::MmapPool
57 return pool_.GetMem(); in GetMem()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dheap_space_test.cpp127 heapSpace_->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F()
133 heapSpace_->FreePool(pool2.GetMem(), pool2.GetSize()); in TEST_F()
164 heapSpace_->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F()
169 heapSpace_->FreePool(pool2.GetMem(), pool2.GetSize()); in TEST_F()
213 genSpaces_->FreePool(pool2.GetMem(), pool2.GetSize()); in TEST_F()
214 genSpaces_->FreePool(pool1.GetMem(), pool1.GetSize()); in TEST_F()
215 genSpaces_->FreeYoungPool(youngPool.GetMem(), youngPool.GetSize()); in TEST_F()
246 genSpaces_->FreeTenuredPool(pool1.GetMem(), pool1.GetSize()); in TEST_F()
247 genSpaces_->FreeSharedPool(sharedPool.GetMem(), sharedPool.GetSize()); in TEST_F()
275 heapSpace_->FreePool(pool1.GetMem(), pool in TEST_F()
[all...]
H A Dhumongous_obj_allocator_test.cpp73 if (pool.GetMem() == nullptr) { in AddMemoryPoolToAllocator()
77 if (!alloc.AddMemoryPool(pool.GetMem(), size)) { in AddMemoryPoolToAllocator()
96 PoolManager::GetMmapMemPool()->FreePool(i.GetMem(), i.GetSize()); in ClearPoolManager()
H A Dfreelist_allocator_test.cpp75 if (pool.GetMem() == nullptr) {
79 if (!alloc.AddMemoryPool(pool.GetMem(), pool.GetSize())) {
98 PoolManager::GetMmapMemPool()->FreePool(i.GetMem(), i.GetSize()); in ClearPoolManager()
101 CrossingMapSingleton::RemoveCrossingMapForMemory(i.GetMem(), i.GetSize()); in ClearPoolManager()
/arkcompiler/ets_runtime/ecmascript/platform/unix/
H A Dmap.cpp49 munmap(it.GetMem(), it.GetSize()); in PageUnmap()
55 PageTag(memMap.GetMem(), memMap.GetSize(), PageTagType::MACHINE_CODE); in MachineCodePageMap()
61 PageClearTag(it.GetMem(), it.GetSize()); in MachineCodePageUnmap()
62 if (!PageProtect(it.GetMem(), it.GetSize(), PAGE_PROT_NONE)) { in MachineCodePageUnmap()
/arkcompiler/ets_runtime/ecmascript/platform/windows/
H A Dmap.cpp71 PageTag(memMap.GetMem(), memMap.GetSize(), PageTagType::MACHINE_CODE); in MachineCodePageMap()
77 PageClearTag(it.GetMem(), it.GetSize()); in MachineCodePageUnmap()
78 if (!PageProtect(it.GetMem(), it.GetSize(), PAGE_PROT_NONE)) { in MachineCodePageUnmap()
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dbump-allocator-inl.h33 : arena_(pool.GetSize(), pool.GetMem()), in BumpPointerAllocator()
39 AllocConfigT::InitializeCrossingMapForMemory(pool.GetMem(), arena_.GetSize()); in BumpPointerAllocator()
56 AllocConfigT::RemoveCrossingMapForMemory(arena_.GetMem(), arena_.GetSize()); in Reset()
57 AllocConfigT::InitializeCrossingMapForMemory(arena_.GetMem(), arena_.GetSize()); in Reset()
145 AllocConfigT::RemoveCrossingMapForMemory(arena_.GetMem(), arena_.GetSize()); in VisitAndRemoveAllPools()
146 memVisitor(arena_.GetMem(), arena_.GetSize()); in VisitAndRemoveAllPools()
H A Dinternal_allocator.cpp156 if (UNLIKELY(pool.GetMem() == nullptr)) { in AllocInRunSlots()
159 runslotsAllocator->AddMemoryPool(pool.GetMem(), pool.GetSize()); in AllocInRunSlots()
204 if (UNLIKELY(pool.GetMem() == nullptr)) { in AllocViaFreeListAllocator()
207 freelistAllocator_->AddMemoryPool(pool.GetMem(), pool.GetSize()); in AllocViaFreeListAllocator()
232 if (UNLIKELY(pool.GetMem() == nullptr)) { in AllocViaHumongousAllocator()
235 humongousAllocator_->AddMemoryPool(pool.GetMem(), pool.GetSize()); in AllocViaHumongousAllocator()
H A Dpygote_space_allocator-inl.h110 if (UNLIKELY(pool.GetMem() == nullptr)) { in Alloc()
113 if (!runslotsAlloc_.AddMemoryPool(pool.GetMem(), pool.GetSize())) { in Alloc()
/arkcompiler/runtime_core/static_core/runtime/include/mem/
H A Dallocator-inl.h42 if (UNLIKELY(pool.GetMem() == nullptr)) { in AddPoolsAndAlloc()
45 bool addedMemoryPool = objectAllocator->AddMemoryPool(pool.GetMem(), pool.GetSize()); in AddPoolsAndAlloc()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
H A Dexecuted_memory_allocator.h34 exeMem.addr_ = buf.GetMem(); in AllocateBuf()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dmem_map_allocator_test.cpp36 PageRelease(memMap.GetMem(), memMap.GetSize()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/platform/
H A Dmap.h39 inline void *GetMem() const in GetMem() function in panda::ecmascript::MemMap

Completed in 14 milliseconds

12