Home
last modified time | relevance | path

Searched full:alloc (Results 1 – 25 of 236) sorted by relevance

12345678910

/arkcompiler/runtime_core/static_core/runtime/tests/
Dframe_allocator_test.cpp53 FrameAllocator<> alloc(useMalloc); in SmallAllocateTest() local
56 array[i] = alloc.Alloc(FRAME_SIZE); in SmallAllocateTest()
62 alloc.Free(array[i]); in SmallAllocateTest()
75 void *mem = alloc1.Alloc(FIRST_FRAME_SIZE); in CornerAllocationSizeTest()
79 mem = alloc1.Alloc(SECOND_FRAME_SIZE); in CornerAllocationSizeTest()
83 void *mem = alloc2.Alloc(SECOND_FRAME_SIZE); in CornerAllocationSizeTest()
87 mem = alloc2.Alloc(THIRD_FRAME_SIZE); in CornerAllocationSizeTest()
91 void *mem = alloc3.Alloc(THIRD_FRAME_SIZE); in CornerAllocationSizeTest()
95 mem = alloc3.Alloc(THIRD_FRAME_SIZE); in CornerAllocationSizeTest()
98 ASSERT_NE(alloc1.Alloc(FIRST_FRAME_SIZE), nullptr); in CornerAllocationSizeTest()
[all …]
Dstack_like_allocator_test.cpp90 StackLikeAllocator<> alloc; in TEST_F() local
93 array[i] = alloc.Alloc(FRAME_SIZE); in TEST_F()
99 alloc.Free(array[i]); in TEST_F()
104 void AlignmentTest(StackLikeAllocator<ALIGNMENT> &alloc) in AlignmentTest() argument
109 array[i] = alloc.Alloc(i * GetAlignmentInBytes(ALIGNMENT)); in AlignmentTest()
122 alloc.Free(array[i]); in AlignmentTest()
128 StackLikeAllocator<> alloc; in TEST_F() local
129 AlignmentTest(alloc); in TEST_F()
146 StackLikeAllocator<> alloc; in TEST_F() local
151 void *mem = alloc.Alloc(FRAME_SIZE); in TEST_F()
[all …]
Drunslots_allocator_test.cpp53 void AddMemoryPoolToAllocator(NonObjectAllocator &alloc) override in AddMemoryPoolToAllocator() argument
59 if (!alloc.AddMemoryPool(mem, DEFAULT_POOL_SIZE_FOR_ALLOC)) { in AddMemoryPoolToAllocator()
64 void AddMemoryPoolToAllocatorProtected(NonObjectAllocator &alloc) override in AddMemoryPoolToAllocatorProtected() argument
72 if (!alloc.AddMemoryPool(mem, DEFAULT_POOL_SIZE_FOR_ALLOC)) { in AddMemoryPoolToAllocatorProtected()
77 void ReleasePages(NonObjectAllocator &alloc) in ReleasePages() argument
79 alloc.ReleaseEmptyRunSlotsPagesUnsafe(); in ReleasePages()
89 LOG(DEBUG, ALLOC) << "Test RunSlots with size " << slotsSize; in TestRunSlots()
99 LOG(DEBUG, ALLOC) << "Iteration = " << i; in TestRunSlots()
118 LOG(DEBUG, ALLOC) << "SimpleAllocateDifferentObjSizeTest"; in TEST_F()
124 void *mem = allocator.Alloc(i); in TEST_F()
[all …]
Dfreelist_allocator_test.cpp69 void AddMemoryPoolToAllocator(NonObjectFreeListAllocator &alloc) override in AddMemoryPoolToAllocator() argument
73 … AllocatorType::FREELIST_ALLOCATOR, &alloc); in AddMemoryPoolToAllocator()
79 if (!alloc.AddMemoryPool(pool.GetMem(), pool.GetSize())) { in AddMemoryPoolToAllocator()
84 void AddMemoryPoolToAllocatorProtected(NonObjectFreeListAllocator &alloc) override in AddMemoryPoolToAllocatorProtected() argument
87 AddMemoryPoolToAllocator(alloc); in AddMemoryPoolToAllocatorProtected()
118 LOG(DEBUG, ALLOC) << "SimpleAllocateDifferentObjSizeTest"; in TEST_F()
124 void *mem = allocator.Alloc(i); in TEST_F()
126 LOG(DEBUG, ALLOC) << "Allocate obj with size " << i << " at " << std::hex << mem; in TEST_F()
205 void *mem = allocator.Alloc(MIN_ALLOC_SIZE); in TEST_F()
221 void *mem = allocator.Alloc(MIN_ALLOC_SIZE * 2U); in TEST_F()
[all …]
Dhumongous_obj_allocator_test.cpp60 void AddMemoryPoolToAllocator(NonObjectHumongousObjAllocator &alloc) override in AddMemoryPoolToAllocator() argument
62 AddMemoryPoolToAllocator(alloc, DEFAULT_POOL_SIZE_FOR_ALLOC); in AddMemoryPoolToAllocator()
65 void AddMemoryPoolToAllocator(NonObjectHumongousObjAllocator &alloc, size_t size) in AddMemoryPoolToAllocator() argument
71 … AllocatorType::HUMONGOUS_ALLOCATOR, &alloc); in AddMemoryPoolToAllocator()
77 if (!alloc.AddMemoryPool(pool.GetMem(), size)) { in AddMemoryPoolToAllocator()
82 void AddMemoryPoolToAllocatorProtected(NonObjectHumongousObjAllocator &alloc) override in AddMemoryPoolToAllocatorProtected() argument
85 AddMemoryPoolToAllocator(alloc); in AddMemoryPoolToAllocatorProtected()
118 void *firstObject = allocator.Alloc(FIRST_OBJECT_SIZE, OBJECT_ALIGNMENT); in TEST_F()
121 void *secondObject = allocator.Alloc(SECOND_OBJECT_SIZE, OBJECT_ALIGNMENT); in TEST_F()
127 LOG(DEBUG, ALLOC) << "SimpleAllocateDifferentObjSizeTest"; in TEST_F()
[all …]
Dregion_allocator_test.cpp122 void *mem = allocator.Alloc<ALLOC_TYPE>(OBJECT_SIZE); in AllocateObjectWithClass()
136 ASSERT_TRUE(allocator.Alloc(size) != nullptr) in AllocateRegularObject()
140 ASSERT_TRUE(allocator.Alloc(size) != nullptr); in AllocateRegularObject()
144 ASSERT_TRUE(allocator.Alloc(alignSize) == nullptr); in AllocateRegularObject()
147 ASSERT_TRUE(allocator.Alloc(alignSize) != nullptr); in AllocateRegularObject()
160 ASSERT_TRUE(allocator.Alloc(allocSize) == nullptr); in AllocateLargeObject()
163 ASSERT_TRUE(allocator.Alloc(allocSize) != nullptr); in AllocateLargeObject()
183 ASSERT_TRUE(allocator.Alloc(allocator.GetMaxRegularObjectSize() / 2UL + 1UL) != nullptr); in TEST_F()
186 ASSERT_TRUE(allocator.Alloc(allocator.GetMaxRegularObjectSize() / 2UL + 1UL) == nullptr); in TEST_F()
201 ASSERT_TRUE(allocator.Alloc(1) == nullptr); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/
Dlive_registers_test.cpp33 auto alloc = GetGraph()->GetAllocator(); in TEST_F() local
34 auto intervals = ArenaVector<LifeIntervals *>(alloc->Adapter()); in TEST_F()
35 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(0U, 42… in TEST_F()
41 auto alloc = GetGraph()->GetAllocator(); in TEST_F() local
42 auto intervals = ArenaVector<LifeIntervals *>(alloc->Adapter()); in TEST_F()
43 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(0U, 10… in TEST_F()
44 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(0U, 2U… in TEST_F()
45 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(2U, 3U… in TEST_F()
46 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(5U, 6U… in TEST_F()
47 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(6U, 8U… in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/utils/
Dref_vector.h55 template <typename T, typename Alloc = std::allocator<T>>
57 using base_vector = std::vector<T *, Alloc>;
61 using allocator_type = Alloc;
75 explicit ref_vector(const allocator_type &alloc) noexcept : base(alloc) {}
79 const allocator_type &alloc = allocator_type()) = delete;
80 explicit ref_vector(size_type count, const allocator_type &alloc = allocator_type()) = delete;
84 ref_vector(Iter first, Iter last, const allocator_type &alloc = allocator_type()) = delete;
88 ref_vector(const ref_vector &other, const allocator_type &alloc) : base(other.base, alloc) {}
92 …ref_vector(ref_vector &&other, const allocator_type &alloc) noexcept : base(std::move(other), allo…
94 …ref_vector(std::initializer_list<value_type> init, const allocator_type &alloc = allocator_type())…
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dschedule.h30 RegPressureSchedule(CGFunc &func, MapleAllocator &alloc) in RegPressureSchedule() argument
32 liveReg(alloc.Adapter()), in RegPressureSchedule()
33 scheduledNode(alloc.Adapter()), in RegPressureSchedule()
34 originalNodeSeries(alloc.Adapter()), in RegPressureSchedule()
35 readyList(alloc.Adapter()), in RegPressureSchedule()
36 partialList(alloc.Adapter()), in RegPressureSchedule()
37 partialSet(alloc.Adapter()), in RegPressureSchedule()
38 partialScheduledNode(alloc.Adapter()), in RegPressureSchedule()
39 optimisticScheduledNodes(alloc.Adapter()), in RegPressureSchedule()
40 splitterIndexes(alloc.Adapter()), in RegPressureSchedule()
[all …]
Dlive.h29 …: AnalysisResult(&memPool), cgFunc(&func), memPool(&memPool), alloc(&memPool), stackMp(func.GetSta… in LiveAnalysis()
60 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewLiveIn()
65 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewLiveOut()
70 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewDef()
75 return memPool->New<SparseDataInfo>(def, alloc); in NewDef()
80 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewUse()
85 return memPool->New<SparseDataInfo>(use, alloc); in NewUse()
97 MapleAllocator alloc; variable
Dreg_alloc_basic.h28 calleeSaveUsed(alloc.Adapter()), in DefaultO0RegAllocator()
29 availRegSet(alloc.Adapter()), in DefaultO0RegAllocator()
30 regMap(std::less<uint32>(), alloc.Adapter()), in DefaultO0RegAllocator()
31 liveReg(std::less<uint8>(), alloc.Adapter()), in DefaultO0RegAllocator()
32 allocatedSet(std::less<Operand *>(), alloc.Adapter()), in DefaultO0RegAllocator()
33 regLiveness(alloc.Adapter()), in DefaultO0RegAllocator()
34 rememberRegs(alloc.Adapter()) in DefaultO0RegAllocator()
Dsparse_datainfo.h33 …SparseDataInfo(uint32 bitNum, const MapleAllocator &alloc) : allocator(alloc), info(allocator), ma… in SparseDataInfo() argument
35 SparseDataInfo(const SparseDataInfo &other, const MapleAllocator &alloc) in SparseDataInfo() argument
36 : allocator(alloc), in SparseDataInfo()
49 SparseDataInfo &Clone(MapleAllocator &alloc) const in Clone() argument
51 auto *dataInfo = alloc.New<SparseDataInfo>(*this, alloc); in Clone()
Dstackmap.h46 …DeoptInfo(MapleAllocator &alloc) : deoptVreg2Opnd(alloc.Adapter()), deoptVreg2LocationInfo(alloc.A… in DeoptInfo() argument
107 ReferenceMap(MapleAllocator &alloc) : referenceLocations(alloc.Adapter()) {} in ReferenceMap() argument
151 StackMap(MapleAllocator &alloc) : deoptInfo(alloc), referenceMap(alloc) {} in StackMap() argument
Ddeps.h94 DepNode(Insn &insn, MapleAllocator &alloc) in DepNode() argument
110 preds(alloc.Adapter()), in DepNode()
111 succs(alloc.Adapter()), in DepNode()
112 comments(alloc.Adapter()), in DepNode()
113 cfiInsns(alloc.Adapter()), in DepNode()
114 clinitInsns(alloc.Adapter()), in DepNode()
116 useRegnos(alloc.Adapter()), in DepNode()
117 defRegnos(alloc.Adapter()), in DepNode()
122 DepNode(Insn &insn, MapleAllocator &alloc, Unit *const *unit, uint32 num, Reservation &rev) in DepNode() argument
138 preds(alloc.Adapter()), in DepNode()
[all …]
Dreg_alloc_lsra.h91 alloc(&memPool), in LiveInterval()
92 ranges(alloc.Adapter()), in LiveInterval()
93 usePositions(alloc.Adapter()), in LiveInterval()
94 noReloadPos(alloc.Adapter()) {} in LiveInterval()
539 MapleAllocator alloc; variable
697 liveIntervalsArray(alloc.Adapter()), in LSRALinearScanRegAllocator()
698 initialQue(alloc.Adapter()), in LSRALinearScanRegAllocator()
699 intParamQueue(alloc.Adapter()), in LSRALinearScanRegAllocator()
700 fpParamQueue(alloc.Adapter()), in LSRALinearScanRegAllocator()
701 callQueue(alloc.Adapter()), in LSRALinearScanRegAllocator()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/
Dme_ir.h510 explicit MePhiNode(MapleAllocator *alloc) : opnds(kOperandNumBinary, nullptr, alloc->Adapter()) in MePhiNode() argument
516 MePhiNode(ScalarMeExpr *expr, MapleAllocator *alloc) in MePhiNode() argument
517 : lhs(expr), opnds(kOperandNumBinary, nullptr, alloc->Adapter()) in MePhiNode()
1135 IvarMeExpr(MapleAllocator *alloc, int32 exprid, PrimType t, TyIdx tidx, FieldID fid, Opcode op) in IvarMeExpr() argument
1136 …: MeExpr(exprid, kMeOpIvar, op, t, 1), tyIdx(tidx), fieldID(fid), muList(1, nullptr, alloc->Adapte… in IvarMeExpr()
1140 IvarMeExpr(MapleAllocator *alloc, int32 exprid, PrimType t, TyIdx tidx, FieldID fid) in IvarMeExpr() argument
1141 : IvarMeExpr(alloc, exprid, t, tidx, fid, OP_iread) in IvarMeExpr()
1145 IvarMeExpr(MapleAllocator *alloc, int32 exprid, const IvarMeExpr &ivarme) in IvarMeExpr() argument
1153 muList(ivarme.muList, alloc->Adapter()) in IvarMeExpr()
1965 DassignMeStmt(MapleAllocator *alloc, const StmtNode *stt) in DassignMeStmt() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Dcg_irbuilder.cpp93 … return mp ? *mp->New<ImmOperand>(value, size, false) : *alloc.New<ImmOperand>(value, size, false); in CreateImm()
99 : *alloc.New<ImmOperand>(symbol, offset, relocs, false); in CreateImm()
104 return mp ? *mp->New<MemOperand>(size) : *alloc.New<MemOperand>(size); in CreateMem()
119 … return mp ? *mp->New<RegOperand>(vRegNO, size, type) : *alloc.New<RegOperand>(vRegNO, size, type); in CreateVReg()
124 … return mp ? *mp->New<RegOperand>(vRegNO, size, type) : *alloc.New<RegOperand>(vRegNO, size, type); in CreateVReg()
129 … return mp ? *mp->New<RegOperand>(pRegNO, size, type) : *alloc.New<RegOperand>(pRegNO, size, type); in CreatePReg()
134 return mp ? *mp->New<ListOperand>(alloc) : *alloc.New<ListOperand>(alloc); in CreateList()
139 return mp ? *mp->New<FuncNameOperand>(symbol) : *alloc.New<FuncNameOperand>(symbol); in CreateFuncNameOpnd()
144 return mp ? *mp->New<LabelOperand>(parent, idx) : *alloc.New<LabelOperand>(parent, idx); in CreateLabel()
149 return mp ? *mp->New<CommentOperand>(s, *mp) : *alloc.New<CommentOperand>(s, *mp); in CreateComment()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Darena_allocator.cpp67 void *mem = arenas_->Alloc(size, alignment); in AllocateAndAddNewPool()
76 LOG(DEBUG, ALLOC) << "Can not add new pool for " << SpaceTypeToString(spaceType_); in AllocateAndAddNewPool()
79 mem = arenas_->Alloc(size, alignment); in AllocateAndAddNewPool()
86 void *ArenaAllocatorT<USE_OOM_HANDLER>::Alloc(size_t size, Alignment align) in Alloc() function in panda::ArenaAllocatorT
89 LOG(DEBUG, ALLOC) << "ArenaAllocator: try to alloc " << size << " with align " << align; in Alloc()
92 LOG(DEBUG, ALLOC) << "\tTry to allocate from stack"; in Alloc()
93 ret = buff_.Alloc(size, align); in Alloc()
94 LOG_IF(ret, DEBUG, ALLOC) << "\tallocate from stack buffer"; in Alloc()
107 LOG(DEBUG, ALLOC) << "ArenaAllocator: allocated " << size << " bytes aligned by " << align; in Alloc()
115 LOG(DEBUG, ALLOC) << "ArenaAllocator: resize to new size " << newSize; in Resize()
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Darena_allocator.cpp72 void *mem = arenas_->Alloc(size, alignment); in AllocateAndAddNewPool()
81 LOG(DEBUG, ALLOC) << "Can not add new pool for " << SpaceTypeToString(space_type_); in AllocateAndAddNewPool()
84 mem = arenas_->Alloc(size, alignment); in AllocateAndAddNewPool()
91 void *ArenaAllocatorT<use_oom_handler>::Alloc(size_t size, Alignment align) in Alloc() function in panda::ArenaAllocatorT
94 LOG(DEBUG, ALLOC) << "ArenaAllocator: try to alloc " << size << " with align " << align; in Alloc()
97 LOG(DEBUG, ALLOC) << "\tTry to allocate from stack"; in Alloc()
98 ret = buff_.Alloc(size, align); in Alloc()
99 LOG_IF(ret, DEBUG, ALLOC) << "\tallocate from stack buffer"; in Alloc()
112 LOG(DEBUG, ALLOC) << "ArenaAllocator: allocated " << size << " bytes aligned by " << align; in Alloc()
120 LOG(DEBUG, ALLOC) << "ArenaAllocator: resize to new size " << new_size; in Resize()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_regsaves.h32 explicit SavedRegInfo(MapleAllocator &alloc) in SavedRegInfo() argument
33 … : saveSet(alloc.Adapter()), restoreEntrySet(alloc.Adapter()), restoreExitSet(alloc.Adapter()) in SavedRegInfo()
104 explicit SavedBBInfo(MapleAllocator &alloc) : bbList(alloc.Adapter()) {} in SavedBBInfo() argument
131 bbSavedRegs(alloc.Adapter()), in AArch64RegSavesOpt()
132 regSavedBBs(alloc.Adapter()), in AArch64RegSavesOpt()
133 regOffset(alloc.Adapter()), in AArch64RegSavesOpt()
134 id2bb(alloc.Adapter()) in AArch64RegSavesOpt()
247 bbSavedRegs[bid] = memPool->New<SavedRegInfo>(alloc); in GetbbSavedRegsEntry()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ipa/include/old/
Dea_connection_graph.h92 alloc(allocator), in mirModule()
227 MapleAllocator *alloc; variable
269 …: locInfo(nullptr), mirModule(m), alloc(a), kind(nk), meExpr(nullptr), eaStatus(kNoEscape), id(0),… in EACGBaseNode()
275 …: locInfo(nullptr), mirModule(m), alloc(a), kind(nk), meExpr(expr), eaStatus(initialEas), id(i), e… in EACGBaseNode()
398 MapleAllocator *alloc; variable
438 EACGPointerNode(MIRModule *md, MapleAllocator *alloc, EAConnectionGraph *ec) in EACGPointerNode() argument
439 : EACGBaseNode(md, alloc, kPointerNode, ec), indirectLevel(0) in EACGPointerNode()
443 …EACGPointerNode(MIRModule *md, MapleAllocator *alloc, EAConnectionGraph &ec, MeExpr *expr, EAStatu… in EACGPointerNode() argument
445 … : EACGBaseNode(md, alloc, kPointerNode, ec, expr, initialEas, i), indirectLevel(indirectL) {}; in EACGPointerNode()
512 EACGObjectNode(MIRModule *md, MapleAllocator *alloc, EAConnectionGraph *ec) in EACGObjectNode() argument
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Dpygote_space_allocator-inl.h28 #define LOG_PYGOTE_SPACE_ALLOCATOR(level) LOG(level, ALLOC) << "PygoteSpaceAllocator: "
89 inline void *PygoteSpaceAllocator<AllocConfigT>::Alloc(size_t size, Alignment align) in Alloc() function
93 // alloc from runslots firstly, if failed, try to alloc from new arena in Alloc()
96 void *obj = runslotsAlloc_.template Alloc<true, false>(size, align); in Alloc()
104 obj = runslotsAlloc_.Alloc(size, align); in Alloc()
115 … LOG(FATAL, ALLOC) << "PygoteSpaceAllocator: couldn't add memory pool to object allocator"; in Alloc()
117 // alloc object again in Alloc()
118 obj = runslotsAlloc_.Alloc(size, align); in Alloc()
121 obj = arena_->Alloc(size, align); in Alloc()
132 obj = arena_->Alloc(size, align); in Alloc()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dlogger_test.cpp35 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in DEATH_TEST()
50 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in DEATH_TEST()
72 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in DEATH_TEST()
153 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in TEST()
170 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in TEST()
176 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in TEST()
190 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in TEST()
196 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in TEST()
208 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC)); in TEST()
218 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::WARNING, Logger::Component::ALLOC)); in TEST()
[all …]
Dalloc_tracker_test.cpp113 AllocInfo alloc; in TEST() local
115 out.read(reinterpret_cast<char *>(&alloc), sizeof(alloc)); in TEST()
118 ASSERT_EQ(DetailAllocTracker::ALLOC_TAG, alloc.tag); in TEST()
119 ASSERT_EQ(0U, alloc.id); in TEST()
120 ASSERT_EQ(20U, alloc.size); in TEST()
121 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), alloc.space); in TEST()
122 ASSERT_EQ(0U, alloc.stacktraceId); in TEST()
/arkcompiler/runtime_core/libpandabase/tests/
Dalloc_tracker_test.cpp110 AllocInfo alloc; in TEST() local
112 out.read(reinterpret_cast<char *>(&alloc), sizeof(alloc)); in TEST()
115 ASSERT_EQ(DetailAllocTracker::ALLOC_TAG, alloc.tag); in TEST()
116 ASSERT_EQ(0, alloc.id); in TEST()
117 ASSERT_EQ(20, alloc.size); in TEST()
118 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), alloc.space); in TEST()
119 ASSERT_EQ(0, alloc.stacktrace_id); in TEST()

12345678910