/arkcompiler/runtime_core/scripts/ |
H A D | memdump.py | 45 # libpandabase/mem/space.h 81 """Filter by space and substring""" 83 def __init__(self, space, strfilter): 84 self.space = space 87 def filter(self, space, stacktrace): 88 """Checks that space and stacktrace matches filter""" 90 if self.space != 'all' and SPACES[space] != self.space [all...] |
/arkcompiler/runtime_core/static_core/scripts/ |
H A D | memdump.py | 45 # libpandabase/mem/space.h 81 """Filter by space and substring""" 83 def __init__(self, space, strfilter): 84 self.space = space 87 def filter(self, space, stacktrace): 88 """Checks that space and stacktrace matches filter""" 90 if self.space != 'all' and SPACES[space] != self.space [all...] |
/arkcompiler/ets_runtime/ecmascript/serializer/ |
H A D | base_deserializer.cpp | 101 uintptr_t BaseDeserializer::DeserializeTaggedObject(SerializedObjectSpace space) in DeserializeTaggedObject() argument 104 uintptr_t res = RelocateObjectAddr(space, objSize); in DeserializeTaggedObject() 162 void BaseDeserializer::HandleNewObjectEncodeFlag(SerializedObjectSpace space, uintptr_t objAddr, size_t fieldOffset, in HandleNewObjectEncodeFlag() argument 171 uintptr_t addr = DeserializeTaggedObject(space); in HandleNewObjectEncodeFlag() 255 SerializedObjectSpace space = SerializeData::DecodeSpace(encodeFlag); in ReadSingleEncodeData() local 256 HandleNewObjectEncodeFlag(space, objAddr, fieldOffset, isRoot); in ReadSingleEncodeData() 379 uintptr_t BaseDeserializer::RelocateObjectAddr(SerializedObjectSpace space, size_t objSize) in RelocateObjectAddr() argument 382 switch (space) { in RelocateObjectAddr() 586 void BaseDeserializer::AllocateMultiRegion(SparseSpace *space, size_t spaceObjSize, size_t ®ionIndex) in AllocateMultiRegion() argument 593 space in AllocateMultiRegion() 606 AllocateMultiSharedRegion(SharedSparseSpace *space, size_t spaceObjSize, size_t ®ionIndex) AllocateMultiSharedRegion() argument 635 SparseSpace *space = heap_->GetOldSpace(); AllocateToOldSpace() local 652 SparseSpace *space = heap_->GetNonMovableSpace(); AllocateToNonMovableSpace() local 669 SparseSpace *space = heap_->GetMachineCodeSpace(); AllocateToMachineCodeSpace() local 686 SharedSparseSpace *space = sheap_->GetOldSpace(); AllocateToSharedOldSpace() local 703 SharedNonMovableSpace *space = sheap_->GetNonMovableSpace(); AllocateToSharedNonMovableSpace() local [all...] |
H A D | base_serializer-inl.h | 54 SerializedObjectSpace space = GetSerializedObjectSpace(object); in SerializeTaggedObject() local 55 data_->WriteUint8(SerializeData::EncodeNewObject(space)); in SerializeTaggedObject() 57 data_->CalculateSerializedObjectSize(space, objectSize); in SerializeTaggedObject()
|
H A D | base_deserializer.h | 96 uintptr_t DeserializeTaggedObject(SerializedObjectSpace space); 99 uintptr_t RelocateObjectAddr(SerializedObjectSpace space, size_t objSize); 103 void HandleNewObjectEncodeFlag(SerializedObjectSpace space, uintptr_t objAddr, size_t fieldOffset, bool isRoot); 110 void AllocateMultiRegion(SparseSpace *space, size_t spaceObjSize, size_t ®ionIndex); 111 void AllocateMultiSharedRegion(SharedSparseSpace *space, size_t spaceObjSize, size_t ®ionIndex); 180 << ", old space heap object size: " in DeserializeFatalOutOfMemory() 182 << ", old space committed size: " in DeserializeFatalOutOfMemory() 184 << ", non movable space heap object size: " in DeserializeFatalOutOfMemory() 186 << ", non movable space committed size: " in DeserializeFatalOutOfMemory() 188 << ", huge space committe in DeserializeFatalOutOfMemory() [all...] |
H A D | serialize_data.h | 36 // 0x00~0x06 represent new object to different space: 37 // 0x00: old space 38 // 0x01: non movable space 39 // 0x02: machine code space 40 // 0x03: huge space 41 // 0x04: shared old space 42 // 0x05: shared non movable space 43 // 0x06: shared huge space 95 static uint8_t EncodeNewObject(SerializedObjectSpace space) in EncodeNewObject() argument 97 return static_cast<uint8_t>(space) | static_cas in EncodeNewObject() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | dump.cpp | 57 // If print without brackets, then we print with space. 191 ArenaString space(" ", adapter); in DumpTypedFieldOpcode() 194 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space + fieldName + space; in DumpTypedFieldOpcode() local 199 ArenaString space(" ", allocator->Adapter()); in DumpTypedOpcode() 202 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space; in DumpTypedOpcode() local 208 ArenaString space(" ", allocator->Adapter()); in DumpTypedOpcode() 211 (*out) << std::setw(INDENT_OPCODE) << opc + flags + space in DumpTypedOpcode() local 604 (*out) << std::setw(INDENT_OPCODE) << opc + space + size + space + id + space; DumpOpcode() local 665 (*out) << std::setw(INDENT_OPCODE) << opc + space + clsName + space + fieldName0 + space + fieldName1 + space; DumpObjectPairOpcode() local [all...] |
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot_processor.h | 68 void RelocateSpaceObject(const JSPandaFile *jsPandaFile, Space* space, SnapshotType type, MethodLiteral* methods, 131 void DeserializeSpaceObject(uintptr_t beginAddr, Space* space, size_t spaceObjSize); 132 void DeserializeHugeSpaceObject(uintptr_t beginAddr, HugeObjectSpace* space, size_t hugeSpaceObjSize); 138 void WriteSpaceObjectToFile(Space* space, std::fstream &write); 139 void WriteHugeObjectToFile(HugeObjectSpace* space, std::fstream &writer); 140 uint32_t StatisticsSpaceObjectSize(Space* space); 141 uint32_t StatisticsHugeObjectSize(HugeObjectSpace* space); 142 uintptr_t AllocateObjectToLocalSpace(Space *space, size_t objectSize);
|
H A D | snapshot_processor.cpp | 1066 void SnapshotProcessor::WriteSpaceObjectToFile(Space* space, std::fstream &writer) in WriteSpaceObjectToFile() argument 1068 size_t regionCount = space->GetRegionCount(); in WriteSpaceObjectToFile() 1070 auto lastRegion = space->GetCurrentRegion(); in WriteSpaceObjectToFile() 1071 space->EnumerateRegions([this, &writer, lastRegion](Region *current) { in WriteSpaceObjectToFile() 1095 void SnapshotProcessor::WriteHugeObjectToFile(HugeObjectSpace* space, std::fstream &writer) in WriteHugeObjectToFile() argument 1097 space->EnumerateRegions([&writer](Region *region) { in WriteHugeObjectToFile() 1121 uint32_t SnapshotProcessor::StatisticsSpaceObjectSize(Space* space) in StatisticsSpaceObjectSize() argument 1123 size_t regionCount = space->GetRegionCount(); in StatisticsSpaceObjectSize() 1126 auto lastRegion = space->GetCurrentRegion(); in StatisticsSpaceObjectSize() 1135 uint32_t SnapshotProcessor::StatisticsHugeObjectSize(HugeObjectSpace* space) in StatisticsHugeObjectSize() argument 1162 AllocateObjectToLocalSpace(Space *space, size_t objectSize) AllocateObjectToLocalSpace() argument 1214 DeserializeSpaceObject(uintptr_t beginAddr, Space* space, size_t spaceObjSize) DeserializeSpaceObject() argument 1259 DeserializeHugeSpaceObject(uintptr_t beginAddr, HugeObjectSpace* space, size_t hugeSpaceObjSize) DeserializeHugeSpaceObject() argument 1516 RelocateSpaceObject(const JSPandaFile *jsPandaFile, Space* space, SnapshotType type, MethodLiteral* methods, size_t methodNums, size_t rootObjSize) RelocateSpaceObject() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | gc_second_test.cpp | 282 SemiSpace * space = heap->GetNewSpace(); in HWTEST_F_L0() local 284 EXPECT_EQ(space->GetSurvivalObjectSize(), 0); in HWTEST_F_L0() 292 EXPECT_GT(space->GetSurvivalObjectSize(), 0); in HWTEST_F_L0() 294 EXPECT_FALSE(space->AdjustCapacity(0, thread)); in HWTEST_F_L0() 295 size_t size = space->GetInitialCapacity() * GROW_OBJECT_SURVIVAL_RATE / 2; in HWTEST_F_L0() 296 EXPECT_FALSE(space->AdjustCapacity(size, thread)); in HWTEST_F_L0() 298 space->SetInitialCapacity(space->GetSurvivalObjectSize() / GROW_OBJECT_SURVIVAL_RATE - 1); in HWTEST_F_L0() 299 size = space->GetSurvivalObjectSize() / GROW_OBJECT_SURVIVAL_RATE - 1; in HWTEST_F_L0() 300 size_t oldMaxCapacity = space in HWTEST_F_L0() [all...] |
H A D | concurrent_marking_test.cpp | 135 SemiSpace *space = heap->GetNewSpace(); in HWTEST_F_L0() local 136 EXPECT_TRUE(space->Expand(false)); in HWTEST_F_L0() 137 Region *region = space->GetCurrentRegion(); in HWTEST_F_L0() 145 uintptr_t addr = space->Allocate(size); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | concurrent_sweeper.cpp | 71 auto space = heap_->GetSpaceWithType(type); in AsyncSweepSpace() local 72 space->AsyncSweep(isMain); in AsyncSweepSpace() 136 SparseSpace *space = heap_->GetSpaceWithType(type); in WaitingTaskFinish() local 137 space->FinishFillSweptRegion(); in WaitingTaskFinish() 143 SparseSpace *space = heap_->GetSpaceWithType(static_cast<MemSpaceType>(i)); in TryFillSweptRegion() local 144 space->TryFillSweptRegion(); in TryFillSweptRegion()
|
H A D | tlab_allocator-inl.h | 47 uintptr_t TlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() argument 50 switch (space) { in Allocate() 101 // 2. Expand region from old space in AllocateInOldSpace() 155 uintptr_t SharedTlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() argument 158 switch (space) { in Allocate()
|
H A D | tlab_allocator.h | 46 inline uintptr_t Allocate(size_t size, MemSpaceType space); 79 inline uintptr_t Allocate(size_t size, MemSpaceType space);
|
H A D | heap_region_allocator.cpp | 24 Region *HeapRegionAllocator::AllocateAlignedRegion(Space *space, size_t capacity, JSThread* thread, BaseHeap *heap, in AllocateAlignedRegion() argument 31 RegionSpaceFlag flags = space->GetRegionFlag(); in AllocateAlignedRegion() 40 ToSpaceTypeName(space->GetSpaceType()), in AllocateAlignedRegion()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | dump.cpp | 49 // If print without brackets, then we print with space. 164 ArenaString space(" ", adapter); in DumpTypedFieldOpcode() 167 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space + field_name + space; in DumpTypedFieldOpcode() local 172 ArenaString space(" ", allocator->Adapter()); in DumpTypedOpcode() 175 (*out) << std::setw(INDENT_OPCODE) << opc + space + id; in DumpTypedOpcode() 296 ArenaString space(" ", adapter); in DumpOpcode() 300 (*out) << std::setw(INDENT_OPCODE) << opcode + space + cc + space in DumpOpcode() 312 out << std::setw(INDENT_OPCODE) << opcode + space + any_base_type + space; DumpOpcodeAnyTypeMixin() local [all...] |
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/ |
H A D | compiler_intrinsics.rb | 78 @ext_intrinsic_spaces = Compiler::intrinsics.collect {|intrinsic| intrinsic.space}.select {|space| space != 'core'}.uniq
|
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/ |
H A D | shared_concurrent_sweeper.cpp | 50 remainingTaskNum_[0] = 0; // No need sweep shared old space in FullGC. in Sweep() 51 remainingTaskNum_[1] = 1; // Need sweep nonmovable space in FullGC. in Sweep() 67 auto space = sHeap_->GetSpaceWithType(type); in AsyncSweepSpace() local 68 space->AsyncSweep(isMain); in AsyncSweepSpace() 132 SharedSparseSpace *space = sHeap_->GetSpaceWithType(type); in WaitingTaskFinish() local 133 space->FinishFillSweptRegion(); in WaitingTaskFinish()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/intrinsics/ |
H A D | compiler_intrinsics.rb | 91 @ext_intrinsic_spaces = Compiler::intrinsics.collect {|intrinsic| intrinsic.space}.select {|space| space != 'core'}.uniq
|
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | alloc_tracker.h | 26 #include "space.h" 39 virtual void TrackAlloc(void *addr, size_t size, SpaceType space) = 0; 52 void TrackAlloc(void *addr, size_t size, [[maybe_unused]] SpaceType space) override 132 void TrackAlloc(void *addr, size_t size, SpaceType space) override; 144 AllocInfo(uint32_t id, uint32_t size, uint32_t space, uint32_t stacktrace_id) in AllocInfo() argument 145 : id_(id), size_(size), space_(space), stacktrace_id_(stacktrace_id) in AllocInfo()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | alloc_tracker.h | 25 #include "space.h" 36 virtual void TrackAlloc(void *addr, size_t size, SpaceType space) = 0; 49 void TrackAlloc(void *addr, size_t size, [[maybe_unused]] SpaceType space) override 129 void TrackAlloc(void *addr, size_t size, SpaceType space) override; 141 AllocInfo(uint32_t id, uint32_t size, uint32_t space, uint32_t stacktraceId) in AllocInfo() argument 142 : id_(id), size_(size), space_(space), stacktraceId_(stacktraceId) in AllocInfo()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | alloc_tracker_test.cpp | 32 uint32_t space = 0; member 88 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), info.space); in TEST() 118 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), alloc.space); in TEST()
|
H A D | pool_map_test.cpp | 175 SpaceType space = GetRandSpaceType(); in HWTEST_F() local 179 AddToPoolMap(pool, space, allocator); in HWTEST_F() 180 CheckRandomPoolAddress(pool, space, allocator, POOL_START_ADDR); in HWTEST_F()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | alloc_tracker_test.cpp | 32 uint32_t space = 0; member 89 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), info.space); in TEST() 121 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), alloc.space); in TEST()
|
H A D | pool_map_test.cpp | 182 SpaceType space = GetRandSpaceType(); in TEST_F() local 186 AddToPoolMap(pool, space, allocator); in TEST_F() 187 CheckRandomPoolAddress(pool, space, allocator, POOL_START_ADDR); in TEST_F()
|