Home
last modified time | relevance | path

Searched full:space (Results 1 – 25 of 191) sorted by relevance

12345678

/arkcompiler/runtime_core/runtime/
Druntime.yaml29 # NB! The `space` property allows to group intrinsics and control
31 # space is loaded. See --load-runtimes for more details.
37 space: core
49 space: core
61 space: core
73 space: core
85 space: core
96 space: core
107 space: core
118 space: core
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dspace.h28 SPACE_TYPE_OBJECT, // Space for objects (all non-humongous sizes)
29 SPACE_TYPE_HUMONGOUS_OBJECT, // Space for humongous objects
30 SPACE_TYPE_NON_MOVABLE_OBJECT, // Space for non-movable objects
31 SPACE_TYPE_INTERNAL, // Space for runtime internal needs
32 SPACE_TYPE_CODE, // Space for compiled code
33 SPACE_TYPE_COMPILER, // Space for memory allocation in compiler
55 return "ark-Undefined Space"; in SpaceTypeToString()
57 return "ark-Object Space"; in SpaceTypeToString()
59 return "ark-Humongous Object Space"; in SpaceTypeToString()
61 return "ark-Non Movable Space"; in SpaceTypeToString()
[all …]
Dalloc_tracker.h25 #include "space.h"
38 virtual void TrackAlloc(void *addr, size_t size, SpaceType space) = 0;
51 void TrackAlloc(void *addr, size_t size, [[maybe_unused]] SpaceType space) override in TrackAlloc() argument
131 void TrackAlloc(void *addr, size_t size, SpaceType space) override;
143 AllocInfo(uint32_t id, uint32_t size, uint32_t space, uint32_t stacktrace_id) in AllocInfo() argument
144 : id_(id), size_(size), space_(space), stacktrace_id_(stacktrace_id) in AllocInfo()
/arkcompiler/ets_runtime/ecmascript/mem/
Dspace.h51 return "old space"; in ToSpaceTypeName()
53 return "non movable space"; in ToSpaceTypeName()
55 return "machine code space"; in ToSpaceTypeName()
57 return "huge object space"; in ToSpaceTypeName()
59 return "semi space"; in ToSpaceTypeName()
61 return "snapshot space"; in ToSpaceTypeName()
63 return "compress space"; in ToSpaceTypeName()
65 return "read only space"; in ToSpaceTypeName()
67 return "appspawn space"; in ToSpaceTypeName()
69 return "unknown space"; in ToSpaceTypeName()
[all …]
Dspace.cpp16 #include "ecmascript/mem/space-inl.h"
22 #include "ecmascript/mem/space.h"
25 Space::Space(HeapRegionAllocator *heapRegionAllocator, in Space() function in panda::ecmascript::Space
36 void Space::Destroy() in Destroy()
41 void Space::ReclaimRegions() in ReclaimRegions()
48 void Space::ClearAndFreeRegion(Region *region) in ClearAndFreeRegion()
66 : Space(heapRegionAllocator, MemSpaceType::HUGE_OBJECT_SPACE, initialCapacity, maximumCapacity), in HugeObjectSpace()
77 … LOG_ECMA_MEM(INFO) << "Committed size " << committedSize_ << " of huge object space is too big."; in Allocate()
Dregion.h42 // Bits 3 to 7 are reserved to denote the space where the region is located.
71 static inline std::string ToSpaceTypeName(uint8_t space) in ToSpaceTypeName() argument
73 switch (space) { in ToSpaceTypeName()
75 return "young space"; in ToSpaceTypeName()
77 return "snapshot space"; in ToSpaceTypeName()
79 return "huge object space"; in ToSpaceTypeName()
81 return "old space"; in ToSpaceTypeName()
83 return "non movable space"; in ToSpaceTypeName()
85 return "machine code space"; in ToSpaceTypeName()
87 return "read only space"; in ToSpaceTypeName()
[all …]
Dspace-inl.h19 #include "ecmascript/mem/space.h"
22 void Space::AddRegion(Region *region) in AddRegion()
30 void Space::RemoveRegion(Region *region) in RemoveRegion()
39 void Space::EnumerateRegions(const Callback &cb, Region *end) const in EnumerateRegions()
60 void Space::EnumerateRegionsWithRecord(const Callback &cb) const in EnumerateRegionsWithRecord()
65 RegionSpaceFlag Space::GetRegionFlag() const in GetRegionFlag()
Dconcurrent_sweeper.cpp21 #include "ecmascript/mem/space-inl.h"
68 auto space = heap_->GetSpaceWithType(type); in AsyncSweepSpace() local
69 space->AsyncSweep(isMain); in AsyncSweepSpace()
129 SparseSpace *space = heap_->GetSpaceWithType(type); in WaitingTaskFinish() local
130 space->FinishFillSweptRegion(); in WaitingTaskFinish()
136 SparseSpace *space = heap_->GetSpaceWithType(static_cast<MemSpaceType>(i)); in TryFillSweptRegion() local
137 space->TryFillSweptRegion(); in TryFillSweptRegion()
Dheap_region_allocator.cpp21 #include "ecmascript/mem/space-inl.h"
27 Region *HeapRegionAllocator::AllocateAlignedRegion(Space *space, size_t capacity, JSThread* thread) in AllocateAlignedRegion() argument
33 RegionSpaceFlag flags = space->GetRegionFlag(); in AllocateAlignedRegion()
/arkcompiler/runtime_core/scripts/
Dmemdump.py45 # libpandabase/mem/space.h
81 """Filter by space and substring"""
83 def __init__(self, space, strfilter): argument
84 self.space = space
87 def filter(self, space, stacktrace): argument
88 """Checks that space and stacktrace matches filter"""
90 if self.space != 'all' and SPACES[space] != self.space:
98 """Validates space value"""
101 print('Invalid value {} of --space option'.format(value))
153 '--space',
[all …]
Dmemusage.py104 # libpandabase/mem/space.h
106 "[anon:ark-Object Space]": MemInfo("ark-Object Space"),
107 "[anon:ark-Humongous Space]": MemInfo("ark-Humongous Space"),
108 "[anon:ark-Non Movable Space]": MemInfo("ark-Non Movable Space"),
109 "[anon:ark-Internal Space]": MemInfo("ark-Internal Space"),
110 "[anon:ark-Code Space]": MemInfo("ark-Code Space"),
111 "[anon:ark-Compiler Space]": MemInfo("ark-Compiler Space")
/arkcompiler/runtime_core/libpandabase/tests/
Dmem_space_test.cpp18 #include "libpandabase/mem/space.h"
35 EXPECT_STREQ("ark-Undefined Space", SpaceTypeToString(SpaceType::SPACE_TYPE_UNDEFINED));
36 EXPECT_STREQ("ark-Object Space", SpaceTypeToString(SpaceType::SPACE_TYPE_OBJECT));
37 …EXPECT_STREQ("ark-Humongous Object Space", SpaceTypeToString(SpaceType::SPACE_TYPE_HUMONGOUS_OBJEC…
38 …EXPECT_STREQ("ark-Non Movable Space", SpaceTypeToString(SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT));
39 EXPECT_STREQ("ark-Internal Space", SpaceTypeToString(SpaceType::SPACE_TYPE_INTERNAL));
40 EXPECT_STREQ("ark-Code Space", SpaceTypeToString(SpaceType::SPACE_TYPE_CODE));
41 EXPECT_STREQ("ark-Compiler Space", SpaceTypeToString(SpaceType::SPACE_TYPE_COMPILER));
42 EXPECT_STREQ("ark-Unknown Space", SpaceTypeToString(SpaceType::SPACE_TYPE_LAST));
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot_processor.h57 void RelocateSpaceObject(Space* space, SnapshotType type, MethodLiteral* methods,
114 void DeserializeSpaceObject(uintptr_t beginAddr, Space* space, size_t spaceObjSize);
115 …void DeserializeHugeSpaceObject(uintptr_t beginAddr, HugeObjectSpace* space, size_t hugeSpaceObjSi…
121 void WriteSpaceObjectToFile(Space* space, std::fstream &write);
122 void WriteHugeObjectToFile(HugeObjectSpace* space, std::fstream &writer);
123 uint32_t StatisticsSpaceObjectSize(Space* space);
124 uint32_t StatisticsHugeObjectSize(HugeObjectSpace* space);
125 uintptr_t AllocateObjectToLocalSpace(Space *space, size_t objectSize);
/arkcompiler/runtime_core/irtoc/
Dintrinsics.yaml23 space: core
37 space: core
50 space: core
63 space: core
77 space: core
91 space: core
104 space: core
118 space: core
132 space: core
/arkcompiler/runtime_core/runtime/mem/
Dheap_space.h77 * \brief Heap space inilialization
78 * @param initial_size initial (also minimum) heap space size
79 * @param max_size maximum heap space size
80 …* @param min_free_percentage minimum possible percentage of free memory in this heap space, use fo…
82 …* @param max_free_percentage maximum possible percentage of free memory in this heap space, use fo…
88 * \brief Compute new size of heap space
165 * \brief Compute new size of heap space
170 * \brief Increase current heap space
171 * @param bytes bytes count for heap space increasing
176 * \brief Reduce current heap space
[all …]
Dheap_space.cpp43 // Set current space size as initial_size in Initialize()
64 // How many bytes are used in space now in ComputeNewSize()
96 // then we increase space to allocate this pool in ComputeNewSize()
100 // Free bytes after increase space for new pool will = 0, so yet increase space in ComputeNewSize()
121 …te pool during GC work then we must allocate new pool anyway, so we wiil try to increase heap space in WillAlloc()
123 …// if requested pool size greater free bytes in current heap space and non occupied memory then we… in WillAlloc()
128 // In this case we need increase space for allocate new pool in WillAlloc()
145 // Increase heap space if needed and allocate pool in TryAllocPoolBase()
150 // Save pool size for computing new space size in TryAllocPoolBase()
166 // Increase heap space if needed and allocate arena in TryAllocArenaBase()
[all …]
/arkcompiler/runtime_core/docs/diagrams/
Dgenerational-minor-gc-activity.puactivity17 :Collect Roots for young space;
18 :Mark objects in young space;
19 :Copy marked/alive objects from young space to the tenured space;
21 :Reset young space;
Dgenerational-concurrent-major-gc-activity.puactivity18 :Collect Roots for tenured space;
19 :Initial mark(direct roots and roots from young space);
21 :Concurrently mark objects in the tenured space;
26 :Sweep tenured space(remove non-marked objects);
Dgenerational-major-gc-activity.puactivity17 :Collect Roots for tenured space;
18 :Mark objects in the tenured space;
19 :Sweep tenured space(remove non-marked objects);
Dg1gc-gc-activity.puactivity24 - occupied space;
32 Note: only if occupied by alive objects space in region < some threshold;
35 :Return freed regions to region space;
/arkcompiler/runtime_core/docs/
Dmemory-management-SW-requirements.md29 - Code space (executable)
30 - Compiler Internal Space(linked list of arenas)
31 - Internal memory space for non-compiler part of runtime (including GC internals)
32 - Object space
33 - Non-moving space(space for non-movable objects)
/arkcompiler/runtime_core/runtime/tests/
Dmem_stats_gen_gc_test.cpp49 * allocated directly in the tenured space for example.
116 template <typename F, size_t repeat, MemStatsGenGCTest::TargetSpace SPACE>
136 … // Allocate a series of objects in a specific space. If DO_SAVE is true, a subsequence of objects
141 template <MemStatsGenGCTest::TargetSpace SPACE, bool DO_SAVE = false, bool IS_SIMPLE = false>
165 template <typename F, size_t repeat, MemStatsGenGCTest::TargetSpace SPACE>
203 if (gc_type_ == GCType::G1_GC && SPACE == TargetSpace::HUMONGOUS) { in MakeAllocationsWithRepeats()
348 template <MemStatsGenGCTest::TargetSpace SPACE, bool DO_SAVE, bool IS_SINGLE>
370 if constexpr (SPACE == TargetSpace::YOUNG) { in MakeAllocations()
373 } else if constexpr (SPACE == TargetSpace::TENURED_REGULAR) { in MakeAllocations()
377 // Allocator configuration disallows allocating directly in this space in MakeAllocations()
[all …]
/arkcompiler/runtime_core/runtime/templates/
Dintrinsics_gen.h.erb67 std::string_view space;
70 space = space_arg;
75 if (space.empty()) {
76 // Current space was disabled in options.
85 if (space == "<%= intrinsic.space %>") {
107 …thod '<%= intrinsic.class_name %>.<%= intrinsic.method_name %>' in space '<%= intrinsic.space %>'";
/arkcompiler/ets_runtime/ecmascript/tests/
Dmem_controller_test.cpp24 #include "ecmascript/mem/space.h"
71 // old space object in HWTEST_F_L0()
79 // old space object in HWTEST_F_L0()
105 // new space object in HWTEST_F_L0()
108 // old space object in HWTEST_F_L0()
112 // huge space object in HWTEST_F_L0()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Ddump.cpp57 // If print without brackets, then we print with space.
186 ArenaString space(" ", adapter); in DumpTypedFieldOpcode() local
189 (*out) << std::setw(INDENT_OPCODE) << opc + space + id + space + field_name + space; in DumpTypedFieldOpcode()
194 ArenaString space(" ", allocator->Adapter()); in DumpTypedOpcode() local
197 (*out) << std::setw(INDENT_OPCODE) << opc + space + id; in DumpTypedOpcode()
349 ArenaString space(" ", adapter); in DumpOpcode() local
353 (*out) << std::setw(INDENT_OPCODE) << opcode + space + cc + space + type; in DumpOpcode()
362 ArenaString space(" ", adapter); in DumpOpcodeAnyTypeMixin() local
365 out << std::setw(INDENT_OPCODE) << opcode + space + any_base_type + space; in DumpOpcodeAnyTypeMixin()
387 ArenaString space(" ", adapter); in DumpOpcode() local
[all …]

12345678