Home
last modified time | relevance | path

Searched refs:SpaceType (Results 1 - 25 of 187) sorted by relevance

12345678

/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Dspace.h23 /// SpaceType and GCCollectMode provide info when we should collect from some allocator or not
24 enum class SpaceType : uint16_t { class
38 constexpr SpaceType ToSpaceType(size_t index) in ToSpaceType()
40 return static_cast<SpaceType>(index); in ToSpaceType()
43 constexpr size_t SpaceTypeToIndex(SpaceType spaceType) in SpaceTypeToIndex()
48 constexpr size_t SPACE_TYPE_SIZE = helpers::ToUnderlying(SpaceType::SPACE_TYPE_LAST);
50 constexpr bool IsHeapSpace(SpaceType spaceType) in IsHeapSpace()
52 return (spaceType == SpaceType::SPACE_TYPE_OBJECT) || (spaceType == SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT) || in IsHeapSpace()
53 (spaceType == SpaceType in IsHeapSpace()
[all...]
H A Dbase_mem_stats.h39 PANDA_PUBLIC_API void RecordAllocateRaw(size_t size, SpaceType typeMem);
43 PANDA_PUBLIC_API void RecordFreeRaw(size_t size, SpaceType typeMem);
46 [[nodiscard]] PANDA_PUBLIC_API uint64_t GetAllocated(SpaceType typeMem) const;
47 [[nodiscard]] PANDA_PUBLIC_API uint64_t GetFreed(SpaceType typeMem) const;
48 [[nodiscard]] PANDA_PUBLIC_API uint64_t GetFootprint(SpaceType typeMem) const;
56 PANDA_PUBLIC_API void RecordAllocate(size_t size, SpaceType typeMem);
57 PANDA_PUBLIC_API void RecordMoved(size_t size, SpaceType typeMem);
58 PANDA_PUBLIC_API void RecordFree(size_t size, SpaceType typeMem);
H A Dbase_mem_stats.cpp24 void BaseMemStats::RecordAllocateRaw(size_t size, SpaceType typeMem) in RecordAllocateRaw()
30 void BaseMemStats::RecordAllocate(size_t size, SpaceType typeMem) in RecordAllocate()
38 void BaseMemStats::RecordMoved(size_t size, SpaceType typeMem) in RecordMoved()
48 void BaseMemStats::RecordFreeRaw(size_t size, SpaceType typeMem) in RecordFreeRaw()
54 void BaseMemStats::RecordFree(size_t size, SpaceType typeMem) in RecordFree()
62 uint64_t BaseMemStats::GetAllocated(SpaceType typeMem) const in GetAllocated()
69 uint64_t BaseMemStats::GetFreed(SpaceType typeMem) const in GetFreed()
80 SpaceType type = ToSpaceType(index); in GetAllocatedHeap()
94 SpaceType type = ToSpaceType(index); in GetFreedHeap()
109 uint64_t BaseMemStats::GetFootprint(SpaceType typeMe
[all...]
H A Dmmap_mem_pool-inl.h187 nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_CODE)] = mem::MemConfig::GetCodeCacheSizeLimit();
188 nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_COMPILER)] =
190 nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_INTERNAL)] =
193 nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_FRAMES)] = std::numeric_limits<size_t>::max();
194 nonObjectSpacesMaxSize_[SpaceTypeToIndex(SpaceType::SPACE_TYPE_NATIVE_STACKS)] =
246 [[maybe_unused]] SpaceType type = std::get<2>(i.second); in ClearNonObjectMmapedPools()
249 ASSERT(type != SpaceType::SPACE_TYPE_UNDEFINED); in ClearNonObjectMmapedPools()
274 inline ArenaT *MmapMemPool::AllocArenaImpl(size_t size, SpaceType spaceType, AllocatorType allocatorType, in AllocArenaImpl()
309 inline void *MmapMemPool::AllocRawMemNonObjectImpl(size_t size, SpaceType spaceType) in AllocRawMemNonObjectImpl()
326 inline void *MmapMemPool::AllocRawMemObjectImpl(size_t size, SpaceType typ
[all...]
H A Dpool_map.h76 PANDA_PUBLIC_API void AddPoolToMap(const void *poolAddr, size_t poolSize, SpaceType spaceType,
84 PANDA_PUBLIC_API SpaceType GetSpaceType(const void *addr) const;
101 void Initialize(MapNumType segmentFirstMapNum, SpaceType spaceType, AllocatorType allocatorType, in Initialize()
120 return spaceType_ == SpaceType::SPACE_TYPE_UNDEFINED; in IsEmpty()
128 spaceType_ = SpaceType::SPACE_TYPE_UNDEFINED; in Destroy()
133 ASSERT(spaceType_ != SpaceType::SPACE_TYPE_UNDEFINED); in GetSegmentFirstMapNum()
147 SpaceType GetSpaceType() const in GetSpaceType()
154 SpaceType spaceType_ {SpaceType::SPACE_TYPE_UNDEFINED};
H A Dpool_map.cpp20 void PoolMap::AddPoolToMap(const void *poolAddr, size_t poolSize, SpaceType spaceType, AllocatorType allocatorType, in AddPoolToMap()
56 SpaceType PoolMap::GetSpaceType(const void *addr) const in GetSpaceType()
59 return SpaceType::SPACE_TYPE_UNDEFINED; in GetSpaceType()
62 SpaceType spaceType = poolMap_[mapNum].GetSpaceType(); in GetSpaceType()
64 ASSERT(spaceType != SpaceType::SPACE_TYPE_UNDEFINED); in GetSpaceType()
/arkcompiler/runtime_core/libpandabase/mem/
H A Dspace.h24 * SpaceType and GCCollectMode provide info when we should collect from some allocator or not
26 enum class SpaceType : size_t { class
38 constexpr SpaceType ToSpaceType(size_t index) in ToSpaceType()
40 return static_cast<SpaceType>(index); in ToSpaceType()
43 constexpr size_t SPACE_TYPE_SIZE = helpers::ToUnderlying(SpaceType::SPACE_TYPE_LAST);
45 constexpr bool IsHeapSpace(SpaceType space_type) in IsHeapSpace()
47 return (space_type == SpaceType::SPACE_TYPE_OBJECT) || (space_type == SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT) || in IsHeapSpace()
48 (space_type == SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT); in IsHeapSpace()
51 inline const char *SpaceTypeToString(SpaceType typ
[all...]
H A Dbase_mem_stats.h39 void RecordAllocateRaw(size_t size, SpaceType type_mem);
43 void RecordFreeRaw(size_t size, SpaceType type_mem);
46 [[nodiscard]] uint64_t GetAllocated(SpaceType type_mem) const;
47 [[nodiscard]] uint64_t GetFreed(SpaceType type_mem) const;
48 [[nodiscard]] uint64_t GetFootprint(SpaceType type_mem) const;
56 void RecordAllocate(size_t size, SpaceType type_mem);
57 void RecordMoved(size_t size, SpaceType type_mem);
58 void RecordFree(size_t size, SpaceType type_mem);
H A Dbase_mem_stats.cpp25 void BaseMemStats::RecordAllocateRaw(size_t size, SpaceType type_mem) in RecordAllocateRaw()
31 void BaseMemStats::RecordAllocate(size_t size, SpaceType type_mem) in RecordAllocate()
39 void BaseMemStats::RecordMoved(size_t size, SpaceType type_mem) in RecordMoved()
49 void BaseMemStats::RecordFreeRaw(size_t size, SpaceType type_mem) in RecordFreeRaw()
55 void BaseMemStats::RecordFree(size_t size, SpaceType type_mem) in RecordFree()
63 uint64_t BaseMemStats::GetAllocated(SpaceType type_mem) const in GetAllocated()
70 uint64_t BaseMemStats::GetFreed(SpaceType type_mem) const in GetFreed()
81 SpaceType type = ToSpaceType(index); in GetAllocatedHeap()
95 SpaceType type = ToSpaceType(index); in GetFreedHeap()
110 uint64_t BaseMemStats::GetFootprint(SpaceType type_me
[all...]
H A Dmmap_mem_pool-inl.h156 [[maybe_unused]] SpaceType type = std::get<2>(i.second); in ~MmapMemPool()
159 ASSERT(type != SpaceType::SPACE_TYPE_UNDEFINED); in ~MmapMemPool()
180 inline ArenaT *MmapMemPool::AllocArenaImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, in AllocArenaImpl()
223 LOG_MMAP_MEM_POOL(DEBUG) << "Occupied memory for " << SpaceTypeToString(SpaceType::SPACE_TYPE_COMPILER) << " - " in AllocRawMemCompilerImpl()
237 LOG_MMAP_MEM_POOL(DEBUG) << "Occupied memory for " << SpaceTypeToString(SpaceType::SPACE_TYPE_INTERNAL) << " - " in AllocRawMemInternalImpl()
251 LOG_MMAP_MEM_POOL(DEBUG) << "Occupied memory for " << SpaceTypeToString(SpaceType::SPACE_TYPE_CODE) << " - " in AllocRawMemCodeImpl()
256 inline void *MmapMemPool::AllocRawMemObjectImpl(size_t size, SpaceType type) in AllocRawMemObjectImpl()
264 inline void *MmapMemPool::AllocRawMemImpl(size_t size, SpaceType type) in AllocRawMemImpl()
274 case SpaceType::SPACE_TYPE_COMPILER: in AllocRawMemImpl()
277 case SpaceType in AllocRawMemImpl()
[all...]
H A Dpool_map.h76 void AddPoolToMap(const void *pool_addr, size_t pool_size, SpaceType space_type, AllocatorType allocator_type,
84 SpaceType GetSpaceType(const void *addr) const;
97 void Initialize(bool first_byte_in_segment, SpaceType space_type, AllocatorType allocator_type, in Initialize()
117 return space_type_ == SpaceType::SPACE_TYPE_UNDEFINED; in IsEmpty()
125 space_type_ = SpaceType::SPACE_TYPE_UNDEFINED; in Destroy()
143 SpaceType GetSpaceType() const in GetSpaceType()
151 SpaceType space_type_ {SpaceType::SPACE_TYPE_UNDEFINED};
H A Dmmap_mem_pool.h183 ArenaT *AllocArenaImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr);
187 void *AllocRawMemImpl(size_t size, SpaceType type);
191 void *AllocRawMemObjectImpl(size_t size, SpaceType type);
194 Pool AllocPoolImpl(size_t size, SpaceType space_type, AllocatorType allocator_type, const void *allocator_addr);
198 SpaceType GetSpaceTypeForAddrImpl(const void *addr) const;
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, AllocatorInfo, SpaceType> FindAddrInNonObjectPoolsMap(const void *addr) const;
278 std::map<const void *, std::tuple<Pool, AllocatorInfo, SpaceType>> non_object_mmaped_pools_;
/arkcompiler/runtime_core/libpandabase/tests/
H A Dbase_mem_stats_test.cpp46 stats.RecordAllocateRaw(i, SpaceType::SPACE_TYPE_CODE); in HWTEST_F()
48 stats.RecordFreeRaw(N, SpaceType::SPACE_TYPE_CODE); in HWTEST_F()
49 ASSERT_EQ(sum, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); in HWTEST_F()
50 ASSERT_EQ(N, stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); in HWTEST_F()
51 ASSERT_EQ(sum - N, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); in HWTEST_F()
68 ASSERT_EQ(size1 + size2, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); in HWTEST_F()
69 ASSERT_EQ(0U, stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); in HWTEST_F()
70 ASSERT_EQ(size1 + size2, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); in HWTEST_F()
72 stats.RecordFreeRaw(size2, SpaceType::SPACE_TYPE_CODE); in HWTEST_F()
74 ASSERT_EQ(sizeof(buff1) + sizeof(buff2), stats.GetAllocated(SpaceType in HWTEST_F()
[all...]
H A Dmem_space_test.cpp30 ASSERT_TRUE(IsHeapSpace(SpaceType::SPACE_TYPE_OBJECT)); in HWTEST()
35 EXPECT_STREQ("ark-Undefined Space", SpaceTypeToString(SpaceType::SPACE_TYPE_UNDEFINED)); in HWTEST()
36 EXPECT_STREQ("ark-Object Space", SpaceTypeToString(SpaceType::SPACE_TYPE_OBJECT)); in HWTEST()
37 EXPECT_STREQ("ark-Humongous Object Space", SpaceTypeToString(SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT)); in HWTEST()
38 EXPECT_STREQ("ark-Non Movable Space", SpaceTypeToString(SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT)); in HWTEST()
39 EXPECT_STREQ("ark-Internal Space", SpaceTypeToString(SpaceType::SPACE_TYPE_INTERNAL)); in HWTEST()
40 EXPECT_STREQ("ark-Code Space", SpaceTypeToString(SpaceType::SPACE_TYPE_CODE)); in HWTEST()
41 EXPECT_STREQ("ark-Compiler Space", SpaceTypeToString(SpaceType::SPACE_TYPE_COMPILER)); in HWTEST()
42 EXPECT_STREQ("ark-Unknown Space", SpaceTypeToString(SpaceType::SPACE_TYPE_LAST)); in HWTEST()
H A Dpool_map_test.cpp46 void AddToPoolMap(Pool pool, SpaceType space_type, AllocatorType allocator_type, void *allocator_addr = nullptr) in AddToPoolMap()
76 SpaceType GetRandSpaceType() const in GetRandSpaceType()
93 void CheckRandomPoolAddress(Pool pool, SpaceType space_type, AllocatorType allocator_type, uintptr_t allocator_addr) in CheckRandomPoolAddress()
112 SpaceType GetSpaceTypeForAddr(const void *addr) const in GetSpaceTypeForAddr()
117 static constexpr std::array<SpaceType, 6> ALL_SPACE_TYPES = {SpaceType::SPACE_TYPE_OBJECT,
118 SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT,
119 SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT,
120 SpaceType::SPACE_TYPE_INTERNAL,
121 SpaceType
[all...]
H A Dmmap_mem_pool_test.cpp65 auto pool1 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in HWTEST_F()
67 auto pool2 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in HWTEST_F()
69 auto pool3 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in HWTEST_F()
71 auto pool4 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in HWTEST_F()
81 auto pool1 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F()
83 auto pool2 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F()
85 auto pool3 = memPool->AllocPool(1_MB, SpaceType::SPACE_TYPE_COMPILER, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F()
87 auto pool4 = memPool->AllocPool(1_MB, SpaceType::SPACE_TYPE_CODE, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F()
89 auto pool5 = memPool->AllocPool(1_MB, SpaceType::SPACE_TYPE_INTERNAL, AllocatorType::BUMP_ALLOCATOR); in HWTEST_F()
107 Pool pool_with_alloc_addr = memPool->AllocPool(POOL_SIZE, SpaceType in HWTEST_F()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbase_mem_stats_test.cpp48 stats.RecordAllocateRaw(i, SpaceType::SPACE_TYPE_CODE); in TEST_F()
50 stats.RecordFreeRaw(N, SpaceType::SPACE_TYPE_CODE); in TEST_F()
51 ASSERT_EQ(sum, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
52 ASSERT_EQ(N, stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
53 ASSERT_EQ(sum - N, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
74 ASSERT_EQ(size1 + size2, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
75 ASSERT_EQ(0U, stats.GetFreed(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
76 ASSERT_EQ(size1 + size2, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
78 stats.RecordFreeRaw(size2, SpaceType::SPACE_TYPE_CODE); in TEST_F()
80 ASSERT_EQ(sizeof(buff1) + sizeof(buff2), stats.GetAllocated(SpaceType in TEST_F()
[all...]
H A Dpool_map_test.cpp50 void AddToPoolMap(Pool pool, SpaceType spaceType, AllocatorType allocatorType, void *allocatorAddr = nullptr) in AddToPoolMap()
80 SpaceType GetRandSpaceType() const in GetRandSpaceType()
100 void CheckRandomPoolAddress(Pool pool, SpaceType spaceType, AllocatorType allocatorType, uintptr_t allocatorAddr) in CheckRandomPoolAddress()
120 SpaceType GetSpaceTypeForAddr(const void *addr) const in GetSpaceTypeForAddr()
125 static constexpr std::array<SpaceType, 6U> ALL_SPACE_TYPES = {SpaceType::SPACE_TYPE_OBJECT,
126 SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT,
127 SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT,
128 SpaceType::SPACE_TYPE_INTERNAL,
129 SpaceType
[all...]
H A Dmmap_mem_pool_test.cpp69 pools[i] = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in ReturnedToOsTest()
74 fourthPool = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in ReturnedToOsTest()
85 BIG_POOL_ALLOC_SIZE, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in ReturnedToOsTest()
93 4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in ReturnedToOsTest()
159 auto pool1 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in TEST_F()
161 auto pool2 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in TEST_F()
163 auto pool3 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in TEST_F()
165 auto pool4 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::HUMONGOUS_ALLOCATOR); in TEST_F()
175 auto pool1 = memPool->AllocPool(4_MB, SpaceType::SPACE_TYPE_OBJECT, AllocatorType::BUMP_ALLOCATOR); in TEST_F()
177 auto pool2 = memPool->AllocPool(4_MB, SpaceType in TEST_F()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dmem_stats_test.cpp82 : rawBytesAllocatedBeforeTest_(stats->GetAllocated(SpaceType::SPACE_TYPE_INTERNAL)), in RawStatsBeforeTest()
83 rawBytesFreedBeforeTest_(stats->GetFreed(SpaceType::SPACE_TYPE_INTERNAL)), in RawStatsBeforeTest()
84 rawBytesFootprintBeforeRest_(stats->GetFootprint(SpaceType::SPACE_TYPE_INTERNAL)) in RawStatsBeforeTest()
106 ASSERT_EQ(heapBytesAllocated, stats->GetAllocated(SpaceType::SPACE_TYPE_OBJECT)); in AssertHeapStats()
107 ASSERT_EQ(heapBytesFreed, stats->GetFreed(SpaceType::SPACE_TYPE_OBJECT)); in AssertHeapStats()
108 ASSERT_EQ(bytesInHeap, stats->GetFootprint(SpaceType::SPACE_TYPE_OBJECT)); in AssertHeapStats()
113 ASSERT_EQ(heapBytesAllocated, stats->GetAllocated(SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT)); in AssertHeapHumongousStats()
114 ASSERT_EQ(heapBytesFreed, stats->GetFreed(SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT)); in AssertHeapHumongousStats()
115 ASSERT_EQ(bytesInHeap, stats->GetFootprint(SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT)); in AssertHeapHumongousStats()
146 stats->GetAllocated(SpaceType in AssertRawStats()
[all...]
H A Dmem_stats_additional_info_test.cpp74 stats.RecordAllocateObject(BYTES_ALLOC1, SpaceType::SPACE_TYPE_OBJECT); in TEST_F()
75 stats.RecordAllocateObject(BYTES_ALLOC2, SpaceType::SPACE_TYPE_OBJECT); in TEST_F()
76 stats.RecordAllocateRaw(RAW_ALLOC1, SpaceType::SPACE_TYPE_INTERNAL); in TEST_F()
78 stats.RecordAllocateObject(stringSize, SpaceType::SPACE_TYPE_OBJECT); in TEST_F()
79 ASSERT_EQ(BYTES_ALLOC1 + BYTES_ALLOC2 + stringSize, stats.GetAllocated(SpaceType::SPACE_TYPE_OBJECT)); in TEST_F()
80 stats.RecordFreeObject(stringSize, SpaceType::SPACE_TYPE_OBJECT); in TEST_F()
81 ASSERT_EQ(BYTES_ALLOC1 + BYTES_ALLOC2, stats.GetFootprint(SpaceType::SPACE_TYPE_OBJECT)); in TEST_F()
82 ASSERT_EQ(BYTES_ALLOC1 + BYTES_ALLOC2 + stringSize, stats.GetAllocated(SpaceType::SPACE_TYPE_OBJECT)); in TEST_F()
83 ASSERT_EQ(stringSize, stats.GetFreed(SpaceType::SPACE_TYPE_OBJECT)); in TEST_F()
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dmem_stats.cpp28 void MemStats<T>::RecordAllocateObject(size_t size, SpaceType typeMem) in RecordAllocateObject()
34 void MemStats<T>::RecordAllocateObjects(size_t totalObjectNum, size_t totalObjectSize, SpaceType typeMem) in RecordAllocateObjects()
38 if (typeMem == SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT) { in RecordAllocateObjects()
50 void MemStats<T>::RecordYoungMovedObjects(size_t youngObjectNum, size_t size, SpaceType typeMem) in RecordYoungMovedObjects()
55 ASSERT(typeMem != SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT); in RecordYoungMovedObjects()
66 void MemStats<T>::RecordTenuredMovedObjects(size_t tenuredObjectNum, size_t size, SpaceType typeMem) in RecordTenuredMovedObjects()
71 ASSERT(typeMem != SpaceType::SPACE_TYPE_HUMONGOUS_OBJECT); in RecordTenuredMovedObjects()
79 void MemStats<T>::RecordFreeObject(size_t objectSize, SpaceType typeMem) in RecordFreeObject()
85 void MemStats<T>::RecordFreeObjects(size_t totalObjectNum, size_t totalObjectSize, SpaceType typeMem) in RecordFreeObjects()
89 if (typeMem == SpaceType in RecordFreeObjects()
[all...]
H A Dalloc_config.h38 static void OnAlloc(size_t size, SpaceType typeMem, MemStatsType *memStats) in OnAlloc()
43 static void OnFree(size_t size, SpaceType typeMem, MemStatsType *memStats) in OnFree()
131 static void OnAlloc(size_t size, SpaceType typeMem, MemStatsType *memStats) in OnAlloc()
136 static void OnFree(size_t size, SpaceType typeMem, MemStatsType *memStats) in OnFree()
192 static void OnAlloc(size_t size, SpaceType typeMem, MemStatsType *memStats) in OnAlloc()
194 ASSERT(typeMem == SpaceType::SPACE_TYPE_INTERNAL); in OnAlloc()
198 static void OnFree(size_t size, SpaceType typeMem, MemStatsType *memStats) in OnFree()
200 ASSERT(typeMem == SpaceType::SPACE_TYPE_INTERNAL); in OnFree()
239 static void OnAlloc([[maybe_unused]] size_t size, [[maybe_unused]] SpaceType typeMem, in OnAlloc()
244 static void OnFree([[maybe_unused]] size_t size, [[maybe_unused]] SpaceType typeMe
[all...]
H A Dmem_stats.h50 void RecordAllocateObject(size_t size, SpaceType typeMem);
52 void RecordAllocateObjects(size_t totalObjectNum, size_t totalObjectSize, SpaceType typeMem);
54 void RecordYoungMovedObjects(size_t youngObjectNum, size_t size, SpaceType typeMem);
56 void RecordTenuredMovedObjects(size_t tenuredObjectNum, size_t size, SpaceType typeMem);
58 void RecordFreeObject(size_t objectSize, SpaceType typeMem);
60 void RecordFreeObjects(size_t totalObjectNum, size_t totalObjectSize, SpaceType typeMem);
/arkcompiler/runtime_core/static_core/runtime/coretypes/
H A Darray.cpp27 static Array *AllocateArray(ark::BaseClass *arrayClass, size_t elemSize, ArraySizeT length, ark::SpaceType spaceType, in AllocateArray()
36 if (LIKELY(spaceType == ark::SpaceType::SPACE_TYPE_OBJECT)) { in AllocateArray()
41 if (spaceType == ark::SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT) { in AllocateArray()
49 Array *Array::Create(ark::Class *arrayClass, const uint8_t *data, ArraySizeT length, ark::SpaceType spaceType, in Create()
71 Array *Array::Create(ark::Class *arrayClass, ArraySizeT length, ark::SpaceType spaceType, bool pinned) in Create()
89 Array *Array::Create(DynClass *dynarrayclass, ArraySizeT length, ark::SpaceType spaceType, bool pinned) in Create()
108 Array *Array::CreateTagged(const PandaVM *vm, ark::BaseClass *arrayClass, ArraySizeT length, ark::SpaceType spaceType, in CreateTagged()

Completed in 11 milliseconds

12345678