Home
last modified time | relevance | path

Searched defs:mem (Results 1 – 25 of 152) sorted by relevance

1234567

/arkcompiler/runtime_core/runtime/tests/
Dhybrid_object_allocator_test.cpp29 namespace panda::mem { namespace
50 [](void *mem, size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); }); in RemovePools()
54 [](void *mem, size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); }); in RemovePools()
57 void Free(HybridObjectAllocator *allocator, void *mem) in Free()
74 bool AllocatedByLargeObjAllocator(FreeListAllocator<ObjectAllocConfig> *allocator, void *mem) in AllocatedByLargeObjAllocator()
79 …ol AllocatedByHumongousObjAllocator(HumongousObjAllocator<ObjectAllocConfig> *allocator, void *mem) in AllocatedByHumongousObjAllocator()
104 void *mem = nullptr; in TEST_F() local
140 …void *mem = allocator.Allocate(HybridObjectAllocator::GetLargeThreshold(), DEFAULT_ALIGNMENT, null… in TEST_F() local
Dbitmap_clear_range_test.cpp24 namespace panda::mem { namespace
45 bm.IterateOverChunks([&bm](void *mem) { bm.Set(mem); }); in TEST_F()
48 …auto test_true_fn = [&bm](void *mem) { EXPECT_TRUE(bm.Test(mem)) << "address: " << mem << std::end… in TEST_F()
49 …auto test_false_fn = [&bm](void *mem) { EXPECT_FALSE(bm.Test(mem)) << "address: " << mem << std::e… in TEST_F()
Dmalloc-proxy-allocator-test.cpp23 namespace panda::mem { namespace
45 [[maybe_unused]] void *mem) override in AllocatedByThisAllocator()
80 auto *mem = allocator.Alloc(i); in TEST_F() local
83 for (auto *mem : v) { in TEST_F() local
Dallocator_test_base.h109 void DeathWriteUint64(void *mem) in DeathWriteUint64()
120 size_t SetBytesFromByteArray(void *mem, size_t size) in SetBytesFromByteArray()
148 bool CompareBytesWithByteArray(void *mem, size_t size, size_t start_index_in_byte_array) in CompareBytesWithByteArray()
492 void *mem = allocator.Alloc(size, Alignment(ALIGNMENT)); in OneAlignedAllocFreeTest() local
530 void *mem = allocator.Alloc(size, Alignment(align)); in AlignedAllocFreeTest() local
563 void *mem = allocator.Alloc(alloc_size); in AllocateAndFree() local
591 void *mem = allocator.Alloc(alloc_size); in VisitAndRemoveFreePools() local
618 void *mem = allocator.Alloc(alloc_size); in VisitAndRemoveFreePools() local
660 void *mem = allocator.Alloc(size); in AllocateFreeDifferentSizesTest() local
698 void *mem = allocator.Alloc(size_obj); in AllocateTooBigObjectTest() local
[all …]
Dframe_allocator_test.cpp28 namespace panda::mem { namespace
70 void *mem = alloc1.Alloc(FIRST_FRAME_SIZE); in CornerAllocationSizeTest() local
78 void *mem = alloc2.Alloc(SECOND_FRAME_SIZE); in CornerAllocationSizeTest() local
86 void *mem = alloc3.Alloc(THIRD_FRAME_SIZE); in CornerAllocationSizeTest() local
133 void *mem = alloc.Alloc(FRAME_SIZE); in CycledAllocateFreeForHugeFramesTest() local
209 …dByThisAllocator([[maybe_unused]] FrameAllocator<> &allocator, [[maybe_unused]] void *mem) override in AllocatedByThisAllocator()
217 auto *mem = static_cast<uint8_t *>(dst); in PrintMemory() local
228 uint8_t *mem = static_cast<uint8_t *>(&byte_array_[idx]); in PrintAtIndex() local
Dtlab_test.cpp23 namespace panda::mem { namespace
51 void *mem = panda::os::mem::MapRWAnonymousRaw(TLAB_TEST_SIZE); in CreateNewTLAB() local
77 void *mem = tlab->Alloc(AlignUp(ALLOC_SIZE, DEFAULT_ALIGNMENT_IN_BYTES)); in TEST_F() local
Dfreelist_allocator_test.cpp28 namespace panda::mem { namespace
88 bool AllocatedByThisAllocator(NonObjectFreeListAllocator &allocator, void *mem) override in AllocatedByThisAllocator()
119 void *mem = allocator.Alloc(i); in TEST_F() local
197 void *mem = allocator.Alloc(min_alloc_size); in TEST_F() local
213 void *mem = allocator.Alloc(min_alloc_size * 2); in TEST_F() local
221 void *mem = allocator.Alloc(min_alloc_size); in TEST_F() local
257 void *mem = allocator.Alloc(alloc_size); in TEST_F() local
296 void *mem = allocator.Alloc(alloc_size); in TEST_F() local
317 void *mem = allocator.Alloc(alloc_size); in TEST_F() local
Drunslots_allocator_test.cpp24 namespace panda::mem { namespace
52 void *mem = panda::os::mem::MapRWAnonymousRaw(DEFAULT_POOL_SIZE_FOR_ALLOC); in AddMemoryPoolToAllocator() local
63 void *mem = panda::os::mem::MapRWAnonymousRaw(DEFAULT_POOL_SIZE_FOR_ALLOC + PAGE_SIZE); in AddMemoryPoolToAllocatorProtected() local
78 bool AllocatedByThisAllocator(NonObjectAllocator &allocator, void *mem) override in AllocatedByThisAllocator()
86 void *mem = aligned_alloc(RUNSLOTS_ALIGNMENT_IN_BYTES, RUNSLOTS_SIZE); in TestRunSlots() local
117 void *mem = allocator.Alloc(i); in TEST_F() local
132 void *mem = allocator.Alloc(ALLOC_SIZE); in TEST_F() local
152 void *mem = allocator.Alloc(ALLOC_SIZE); in TEST_F() local
302 void *mem = allocator.Alloc(BIG_OBJ_SIZE); in TEST_F() local
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dmem.cpp31 namespace panda::os::mem { namespace
68 std::optional<Error> MakeMemWithProtFlag(void *mem, size_t size, int prot) in MakeMemWithProtFlag()
77 std::optional<Error> MakeMemReadExec(void *mem, size_t size) in MakeMemReadExec()
83 std::optional<Error> MakeMemReadWrite(void *mem, size_t size) in MakeMemReadWrite()
89 std::optional<Error> MakeMemReadOnly(void *mem, size_t size) in MakeMemReadOnly()
94 std::optional<Error> MakeMemProtected(void *mem, size_t size) in MakeMemProtected()
123 void AlignedFree(void *mem) in AlignedFree()
159 std::optional<Error> PartiallyUnmapRaw(void *mem, size_t size) in PartiallyUnmapRaw()
192 void *MapRWAnonymousFixedRaw(void *mem, size_t size, bool force_poison) in MapRWAnonymousFixedRaw()
221 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw()
[all …]
/arkcompiler/runtime_core/runtime/mem/
Dframe_allocator-inl.h84 void *mem = TryToAllocate(size); in Alloc() local
110 ALWAYS_INLINE inline void FrameAllocator<AlignmenT, UseMemsetT>::Free(void *mem) in Free()
139 void *mem = cur_arena_->Alloc(size); in TryToAllocate() local
210 auto mem = panda::os::mem::AlignedAlloc(alignof(FramesArena), size); in AllocateArenaImpl() local
233 inline bool FrameAllocator<AlignmenT, UseMemsetT>::Contains(void *mem) in Contains()
Dheap_manager.cpp34 namespace panda::mem { namespace
84 …[](void *mem, [[maybe_unused]] size_t size) { PoolManager::GetMmapMemPool()->FreePool(mem, size); … in Finalize()
99 void *mem = AllocateMemoryForObject(size, align, thread); in AllocateObject() local
126 void *mem = nullptr; in TryGCAndAlloc() local
159 void *mem = nullptr; in AllocateMemoryForObject() local
190 void *mem = objectAllocator_->AllocateNonMovable(size, align, thread); in AllocateNonMovableObject() local
218 ObjectHeader *HeapManager::InitObjectHeaderAtMem(BaseClass *cls, void *mem) in InitObjectHeaderAtMem()
326 objectAllocator_->IterateOverObjects([&obj_cnt, &o_string_stream](ObjectHeader *mem) { in DumpHeap()
Dhumongous_obj_allocator-inl.h62 void *mem = nullptr; in Alloc() local
99 void HumongousObjAllocator<AllocConfigT, LockConfigT>::Free(void *mem) in Free()
106 void HumongousObjAllocator<AllocConfigT, LockConfigT>::FreeUnsafe(void *mem) in FreeUnsafe()
165 bool HumongousObjAllocator<AllocConfigT, LockConfigT>::AddMemoryPool(void *mem, size_t size) in AddMemoryPool()
288 bool HumongousObjAllocator<AllocConfigT, LockConfigT>::AllocatedByHumongousObjAllocator(void *mem) in AllocatedByHumongousObjAllocator()
295 …HumongousObjAllocator<AllocConfigT, LockConfigT>::AllocatedByHumongousObjAllocatorUnsafe(void *mem) in AllocatedByHumongousObjAllocatorUnsafe()
/arkcompiler/runtime_core/libpandabase/mem/
Dmmap_mem_pool-inl.h130 …void *mem = panda::os::mem::MapRWAnonymousFixedRaw(ToVoidPtr(PANDA_32BITS_HEAP_START_ADDRESS), obj… in MmapMemPool() local
135 …void *mem = panda::os::mem::MapRWAnonymousWithAlignmentRaw(object_space_size, PANDA_POOL_ALIGNMENT… in MmapMemPool() local
187 void *mem = pool_for_arena.GetMem(); in AllocArenaImpl() local
216 void *mem = nullptr; in AllocRawMemCompilerImpl() local
230 void *mem = nullptr; in AllocRawMemInternalImpl() local
244 void *mem = nullptr; in AllocRawMemCodeImpl() local
258 void *mem = common_space_.AllocRawMem(size, &common_space_pools_); in AllocRawMemObjectImpl() local
271 void *mem = nullptr; in AllocRawMemImpl() local
304 inline void MmapMemPool::FreeRawMemImpl(void *mem, size_t size) in FreeRawMemImpl()
341 void *mem = AllocRawMemImpl(size, space_type); in AllocPoolUnsafe() local
[all …]
Dmem_pool.h29 explicit constexpr Pool(size_t size, void *mem) : size_(size), mem_(mem) {} in Pool()
122 void FreePool(void *mem, size_t size) in FreePool()
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/
Dfmutex.h30 #define ATOMIC_STORE(addr, val, mem) atomic_store_explicit(addr, val, mem) argument
31 #define ATOMIC_LOAD(addr, mem) atomic_load_explicit(addr, mem) argument
32 #define ATOMIC_FETCH_ADD(addr, val, mem) atomic_fetch_add_explicit(addr, val, mem) argument
33 #define ATOMIC_FETCH_SUB(addr, val, mem) atomic_fetch_sub_explicit(addr, val, mem) argument
53 #define ATOMIC_STORE(addr, val, mem) (addr)->store(val, std::mem) // NOLINT(cppcoreguideli… argument
54 #define ATOMIC_LOAD(addr, mem) (addr)->load(std::mem) // NOLINT(cppcoreguideli… argument
55 #define ATOMIC_FETCH_ADD(addr, val, mem) (addr)->fetch_add(val, std::mem) // NOLINT(cppcoreguideli… argument
56 #define ATOMIC_FETCH_SUB(addr, val, mem) (addr)->fetch_sub(val, std::mem) // NOLINT(cppcoreguideli… argument
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dmem.cpp31 namespace panda::os::mem { namespace
185 std::optional<Error> MakeMemWithProtFlag(void *mem, size_t size, int prot) in MakeMemWithProtFlag()
195 std::optional<Error> MakeMemReadExec(void *mem, size_t size) in MakeMemReadExec()
201 std::optional<Error> MakeMemReadWrite(void *mem, size_t size) in MakeMemReadWrite()
207 std::optional<Error> MakeMemReadOnly(void *mem, size_t size) in MakeMemReadOnly()
212 std::optional<Error> MakeMemProtected(void *mem, size_t size) in MakeMemProtected()
239 std::optional<Error> PartiallyUnmapRaw([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PartiallyUnmapRaw()
293 void AlignedFree(void *mem) in AlignedFree()
298 std::optional<Error> UnmapRaw(void *mem, size_t size) in UnmapRaw()
309 std::optional<Error> TagAnonymousMemory([[maybe_unused]] const void *mem, [[maybe_unused]] size_t s… in TagAnonymousMemory()
/arkcompiler/ets_runtime/ecmascript/mem/
Dnative_area_allocator.cpp35 void *mem = malloc(capacity); in AllocateArea() local
75 void NativeAreaAllocator::Free(void *mem, size_t size) in Free()
115 void NativeAreaAllocator::FreeBuffer(void *mem) in FreeBuffer()
Dmem_map_allocator.cpp34 MemMap mem; in Allocate() local
57 void MemMapAllocator::Free(void *mem, size_t size, bool isRegular) in Free()
/arkcompiler/runtime_core/runtime/include/mem/
Dallocator-inl.h26 void *mem = object_allocator->template Alloc<need_lock>(size, align); in AllocateSafe() local
37 void *mem = nullptr; in AddPoolsAndAlloc() local
61 void *mem = nullptr; in AllocateTenuredImpl() local
/arkcompiler/runtime_core/runtime/mem/gc/hybrid-gc/
Dhybrid_object_allocator.cpp24 namespace panda::mem { namespace
45 void *mem = nullptr; in Allocate() local
58 void *mem = nullptr; in AllocateInLargeAllocator() local
/arkcompiler/ets_runtime/ecmascript/platform/unix/
Dmap.cpp66 void PageRelease(void *mem, size_t size) in PageRelease()
71 void PageTag(void *mem, size_t size, bool remove) in PageTag()
80 void PageProtect(void *mem, size_t size, int prot) in PageProtect()
/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dmap.cpp73 void PageRelease([[maybe_unused]] void *mem, [[maybe_unused]] size_t size) in PageRelease()
77 void PageTag([[maybe_unused]] void *mem, [[maybe_unused]] size_t size, [[maybe_unused]] bool remove) in PageTag()
81 void PageProtect(void *mem, size_t size, int prot) in PageProtect()
/arkcompiler/ets_runtime/ecmascript/platform/
Dmap.h27 MemMap(void *mem, size_t size) : originAddr_(mem), mem_(mem), size_(size) {}; in MemMap()
28 …MemMap(void *originAddr, void *mem, size_t size) : originAddr_(originAddr), mem_(mem), size_(size)… in MemMap()
/arkcompiler/runtime_core/runtime/mem/gc/reference-processor/
Dreference_processor.cpp18 namespace panda::mem { namespace
/arkcompiler/runtime_core/runtime/mem/gc/epsilon/
Depsilon_barrier.cpp20 namespace panda::mem { namespace

1234567