Home
last modified time | relevance | path

Searched refs:region (Results 1 - 25 of 103) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dregion_space-inl.h25 explicit RegionAllocCheck(Region *region) : region_(region) in RegionAllocCheck() argument
42 explicit RegionIterateCheck(Region *region) : region_(region) in RegionIterateCheck() argument
130 void RegionPool::FreeRegion(Region *region) in FreeRegion() argument
133 if (block_.IsAddrInRange(region)) { in FreeRegion()
134 region->IsYoung() ? spaces_->ReduceYoungOccupiedInSharedPool(region->Size()) in FreeRegion()
135 : spaces_->ReduceTenuredOccupiedInSharedPool(region->Size()); in FreeRegion()
136 block_.FreeRegion(region, releasePage in FreeRegion()
144 FreeRegion(Region *region) FreeRegion() argument
195 auto *region = Region::AsRegion(&(*it)); IterateRegionsList() local
210 auto *region = GetRegion<CROSS_REGION>(object); IsLive() local
[all...]
H A Dregion_space.cpp231 // NOTE(yxr) : find a unused region, improve it in AllocRegion()
234 auto *region = RegionAt(i); in AllocRegion() local
235 occupied_[i] = region; in AllocRegion()
237 return region; in AllocRegion()
261 auto *region = RegionAt(left); in AllocLargeRegion() local
263 occupied_[left + i] = region; in AllocLargeRegion()
266 return region; in AllocLargeRegion()
274 void RegionBlock::FreeRegion(Region *region, bool releasePages) in FreeRegion() argument
277 size_t regionIdx = RegionIndex(region); in FreeRegion()
278 size_t regionNum = region in FreeRegion()
310 void *region = nullptr; NewRegion() local
330 NewRegion(void *region, RegionSpace *space, size_t regionSize, RegionFlag edenOrOldOrNonmovable, RegionFlag properties) NewRegion() argument
351 PromoteYoungRegion(Region *region) PromoteYoungRegion() argument
383 Region *region = nullptr; NewRegion() local
417 PromoteYoungRegion(Region *region) PromoteYoungRegion() argument
442 Region *region = Region::AsRegion(&(*regionList.begin())); GetRegionFromEmptyList() local
[all...]
H A Dregion_allocator-inl.h80 Region *region = AllocRegion<OS_ALLOC_POLICY>(regionSize, regionType, properties); in CreateAndSetUpNewRegion() local
81 if (LIKELY(region != nullptr)) { in CreateAndSetUpNewRegion()
83 AllocConfigT::OnInitYoungRegion({region->Begin(), region->End()}); in CreateAndSetUpNewRegion()
88 // allocates a new region, sets up the region header, allocates object in the region and publishes in CreateAndSetUpNewRegion()
90 // GC thread does concurrent marking. It sees the reference to the new object and gets the region in CreateAndSetUpNewRegion()
93 // sure GC thread sees all bitmaps from the region header. in CreateAndSetUpNewRegion()
95 // Getting region b in CreateAndSetUpNewRegion()
154 Region *region = this->template CreateAndSetUpNewRegion<AllocConfigT>(REGION_SIZE, REGION_TYPE); AllocRegular() local
243 Region *region = this->template CreateAndSetUpNewRegion<AllocConfigT>( Alloc() local
262 auto *region = ObjectToRegion(object); PinObject() local
270 auto *region = ObjectToRegion(object); UnpinObject() local
293 Region *region = nullptr; CreateTLAB() local
330 Region *region = this->template CreateAndSetUpNewRegion<AllocConfigT>(REGION_SIZE, RegionFlag::IS_EDEN); CreateRegionSizeTLAB() local
341 CreateTLABInRegion(Region *region, size_t size) CreateTLABInRegion() argument
423 CompactSpecificRegion(Region *region, const GCObjectVisitor &deathChecker, const ObjectVisitorEx &moveHandler) CompactSpecificRegion() argument
510 PromoteYoungRegion(Region *region, const GCObjectVisitor &deathChecker, const ObjectVisitor &aliveObjectsHandler) PromoteYoungRegion() argument
662 Region *region = this->template CreateAndSetUpNewRegion<AllocConfigT>(REGION_SIZE, RegionFlag::IS_NONMOVABLE); NewRegionAndRetryAlloc() local
696 Region *region = nullptr; Alloc() local
748 Collect(Region *region, const GCObjectVisitor &deathChecker) Collect() argument
759 ResetRegion(Region *region) ResetRegion() argument
[all...]
H A Drem_set-inl.h108 auto *region = AddrToRegion(ToVoidPtr(bitmap_begin_addr)); in GetDirtyRegions() local
109 regions.insert(region); in GetDirtyRegions()
121 // TSAN thinks that we can have a data race here when we get region or getRemSet from region, because we don't have in AddRefWithAddr()
122 // synchronization between these events. In reality it's impossible, because if we get write from/to region it in AddRefWithAddr()
129 "region " << toRegion << ", obj " << objAddr << ", value " << valueAddr); in AddRefWithAddr()
142 // TSAN thinks that we can have a data race here when we get region or getRemSet from region, because we don't have in AddRefWithAddr()
143 // synchronization between these events. In reality it's impossible, because if we get write from/to region it in AddRefWithAddr()
148 "region " << toRegio in AddRefWithAddr()
160 auto *region = AddrToRegion(ToVoidPtr(bitmapBeginAddr)); Iterate() local
190 AddRefRegion(Region *region) AddRefRegion() argument
198 RemoveFromRegion(Region *region) RemoveFromRegion() argument
209 RemoveRefRegion(Region *region) RemoveRefRegion() argument
281 auto *region = AddrToRegion(ToVoidPtr(bitmapBeginAddr)); IterateOverBits() local
288 IterateOverUniqueRange(Region *region, MemRange range, const MemVisitor &visitor) IterateOverUniqueRange() argument
[all...]
H A Dregion_allocator.h38 /// Return the region which corresponds to the start of the object.
41 auto *region = reinterpret_cast<Region *>(((ToUintPtr(object)) & ~DEFAULT_REGION_MASK)); in ObjectToRegion() local
42 ASSERT(ToUintPtr(PoolManager::GetMmapMemPool()->GetStartAddrPoolForAddr(object)) == ToUintPtr(region)); in ObjectToRegion()
43 // Getting region by object is a bit operation and TSAN doesn't in ObjectToRegion()
44 // sees the relation between region creation and region access. in ObjectToRegion()
46 // the region gets created. in ObjectToRegion()
48 TSAN_ANNOTATE_HAPPENS_AFTER(region); in ObjectToRegion()
49 return region; in ObjectToRegion()
57 /// Return the region whic
360 AddPromotedRegionToQueueIfPinned(Region *region) AddPromotedRegionToQueueIfPinned() argument
384 SetCurrentRegion(Region *region) SetCurrentRegion() argument
427 IsInCurrentRegion(Region *region) IsInCurrentRegion() argument
455 auto *region = regionQueue->back(); PopFromRegionQueue() local
462 PushToRegionQueue(Region *region) PushToRegionQueue() argument
[all...]
H A Dregion_space.h153 // We can call it from the promoted region in IncreaseAllocatedObjects()
381 // We can call it from the promoted region in SetAllocatedObjects()
395 MarkBitmap *liveBitmap_ {nullptr}; // records live objects for old region
397 RemSetT *remSet_ {nullptr}; // remember set(old region -> eden/survivor region)
398 PandaVector<TLAB *> *tlabVector_ {nullptr}; // pointer to a vector with thread tlabs associated with this region
405 inline std::ostream &DumpRegionRange(std::ostream &out, const Region &region) in DumpRegionRange() argument
409 out << std::hex << "[0x" << std::setw(POINTER_PRINT_WIDTH) << std::setfill('0') << region.Begin() << "-0x" in DumpRegionRange()
410 << std::setw(POINTER_PRINT_WIDTH) << std::setfill('0') << region.End() << "]"; in DumpRegionRange()
415 inline std::ostream &operator<<(std::ostream &out, const Region &region) in operator <<() argument
657 auto *region = regionPool_->GetRegion<CROSS_REGION>(object); GetRegion() local
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dsparse_space.cpp34 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, localHeap_); in Initialize() local
35 region->SetLocalHeap(reinterpret_cast<uintptr_t>(localHeap_)); in Initialize()
36 AddRegion(region); in Initialize()
38 allocator_->Initialize(region); in Initialize()
95 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, localHeap_); in Expand() local
96 region->SetLocalHeap(reinterpret_cast<uintptr_t>(localHeap_)); in Expand()
97 AddRegion(region); in Expand()
98 allocator_->AddFree(region); in Expand()
142 // Main thread sweeping region is added; in AsyncSweep()
171 Region *region in TryFillSweptRegion() local
188 AddSweepingRegion(Region *region) AddSweepingRegion() argument
204 Region *region = nullptr; GetSweepingRegionSafe() local
212 AddSweptRegionSafe(Region *region) AddSweptRegionSafe() argument
222 Region *region = nullptr; GetSweptRegionSafe() local
230 FreeRegionFromSpace(Region *region) FreeRegionFromSpace() argument
250 Region *region = *iter; TryToGetSuitableSweptRegion() local
345 DetachFreeObjectSet(Region *region) DetachFreeObjectSet() argument
392 Region *region = Region::ObjectAddressToRange(result); TryToGetExclusiveRegion() local
550 AddRegionToList(Region *region) AddRegionToList() argument
[all...]
H A Dspace.cpp18 #include "ecmascript/mem/region-inl.h"
67 void Space::ClearAndFreeRegion(Region *region, size_t cachedSize) in ClearAndFreeRegion() argument
69 ASSERT(region != nullptr); in ClearAndFreeRegion()
70 LOG_ECMA_MEM(DEBUG) << "Clear region from:" << region << " to " << ToSpaceTypeName(spaceType_); in ClearAndFreeRegion()
71 region->DeleteCrossRegionRSet(); in ClearAndFreeRegion()
72 region->DeleteNewToEdenRSet(); in ClearAndFreeRegion()
73 region->DeleteOldToNewRSet(); in ClearAndFreeRegion()
74 region->DeleteLocalToShareRSet(); in ClearAndFreeRegion()
75 region in ClearAndFreeRegion()
156 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, allocSize, thread, heap_); AllocateFort() local
184 Region *region; Allocate() local
228 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, alignedSize, thread, heap_); Allocate() local
[all...]
H A Dlinear_space.cpp105 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, localHeap_, in Expand() local
107 allocator_.Reset(region->GetBegin(), region->GetEnd()); in Expand()
108 AddRegion(region); in Expand()
130 EnumerateRegions([&](Region *region) { in IterateOverObjects()
131 auto curPtr = region->GetBegin(); in IterateOverObjects()
133 if (region == current) { in IterateOverObjects()
135 endPtr = curPtr + region->GetAllocatedBytes(top); in IterateOverObjects()
137 endPtr = curPtr + region->GetAllocatedBytes(); in IterateOverObjects()
195 auto region in Initialize() local
267 auto region = new (ToVoidPtr(mem)) Region(localHeap_->GetNativeAreaAllocator(), mem, begin, end, AllocRegion() local
275 Region *region = AllocRegion(); Expand() local
350 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, localHeap_); Initialize() local
381 SwapRegion(Region *region, SemiSpace *fromSpace) SwapRegion() argument
[all...]
H A Dparallel_evacuator-inl.h23 #include "ecmascript/mem/region-inl.h"
29 bool ParallelEvacuator::IsWholeRegionEvacuate(Region *region) in IsWholeRegionEvacuate() argument
31 if ((static_cast<double>(region->AliveObject()) / region->GetSize()) > MIN_OBJECT_SURVIVAL_RATE && in IsWholeRegionEvacuate()
32 !region->HasAgeMark()) { in IsWholeRegionEvacuate()
35 if (heap_->GetFromSpaceDuringEvacuation()->CommittedSizeIsLarge() && !region->HasAgeMark()) { in IsWholeRegionEvacuate()
41 bool ParallelEvacuator::WholeRegionEvacuate(Region *region) in WholeRegionEvacuate() argument
43 if (region->IsFreshRegion()) { in WholeRegionEvacuate()
44 ASSERT(region->InYoungSpace()); in WholeRegionEvacuate()
45 return heap_->MoveYoungRegionSync(region); in WholeRegionEvacuate()
256 Region *region = Region::ObjectAddressToRange(object); UpdateLocalToShareRSet() local
271 SetLocalToShareRSet(ObjectSlot slot, Region *region) SetLocalToShareRSet() argument
287 Region *region = Region::ObjectAddressToRange(object); SetObjectFieldRSet() local
303 SetObjectRSet(ObjectSlot slot, Region *region) SetObjectRSet() argument
[all...]
H A Dspace-inl.h22 void Space::AddRegion(Region *region) in AddRegion() argument
24 ASSERT(region != nullptr); in AddRegion()
25 LOG_ECMA_MEM(DEBUG) << "Add region:" << region << " to " << ToSpaceTypeName(spaceType_); in AddRegion()
26 regionList_.AddNode(region); in AddRegion()
27 IncreaseCommitted(region->GetCapacity()); in AddRegion()
28 IncreaseObjectSize(region->GetSize()); in AddRegion()
31 void Space::RemoveRegion(Region *region) in RemoveRegion() argument
33 LOG_ECMA_MEM(DEBUG) << "Remove region:" << region << " t in RemoveRegion()
[all...]
H A Dheap_region_allocator.cpp64 LOG_ECMA_IF(AlignUp(mem, PANDA_POOL_ALIGNMENT_IN_BYTES) != mem, FATAL) << "region not align by 256KB"; in AllocateAlignedRegion()
69 Region *region = new (ToVoidPtr(mem)) Region(heap->GetNativeAreaAllocator(), mem, begin, end, flags, typeFlag); in AllocateAlignedRegion() local
70 region->Initialize(); in AllocateAlignedRegion()
72 return region; in AllocateAlignedRegion()
75 void HeapRegionAllocator::FreeRegion(Region *region, size_t cachedSize) in FreeRegion() argument
77 auto size = region->GetCapacity(); in FreeRegion()
78 bool isRegular = !region->InHugeObjectSpace() && !region->InHugeMachineCodeSpace() && in FreeRegion()
79 !region->InSharedHugeObjectSpace(); in FreeRegion()
80 auto allocateBase = region in FreeRegion()
[all...]
H A Dparallel_evacuator.h25 #include "ecmascript/mem/region.h"
83 Workload(ParallelEvacuator *evacuator, Region *region) : evacuator_(evacuator), region_(region) {}; in Workload() argument
129 EvacuateWorkload(ParallelEvacuator *evacuator, Region *region) : Workload(evacuator, region) {} in EvacuateWorkload() argument
136 UpdateRSetWorkload(ParallelEvacuator *evacuator, Region *region, bool isEdenGC) in UpdateRSetWorkload() argument
137 : Workload(evacuator, region), isEdenGC_(isEdenGC) {} in UpdateRSetWorkload()
146 UpdateNewToEdenRSetWorkload(ParallelEvacuator *evacuator, Region *region) : Workload(evacuator, region) {} in UpdateNewToEdenRSetWorkload() argument
153 UpdateNewRegionWorkload(ParallelEvacuator *evacuator, Region *region, boo argument
163 UpdateAndSweepNewRegionWorkload(ParallelEvacuator *evacuator, Region *region, bool isYoungGC) UpdateAndSweepNewRegionWorkload() argument
[all...]
H A Dparallel_marker-inl.h24 #include "ecmascript/mem/region-inl.h"
59 // Object in fresh region should only mark from JS Thread in barrier, or MarkObject in MarkRoots. in MarkValue()
132 inline void NonMovableMarker::HandleNewToEdenRSet(uint32_t threadId, Region *region) in HandleNewToEdenRSet() argument
134 ASSERT(region->InYoungSpace()); in HandleNewToEdenRSet()
135 region->IterateAllNewToEdenBits([this, threadId, region](void *mem) -> bool { in HandleNewToEdenRSet()
140 RecordWeakReference(threadId, reinterpret_cast<JSTaggedType *>(mem), region); in HandleNewToEdenRSet()
149 inline void NonMovableMarker::HandleOldToNewRSet(uint32_t threadId, Region *region) in HandleOldToNewRSet() argument
152 region->IterateAllOldToNewBits([this, threadId, &region, isEdenMar in HandleOldToNewRSet()
239 HandleNewToEdenRSet(uint32_t threadId, Region *region) HandleNewToEdenRSet() argument
258 HandleOldToNewRSet(uint32_t threadId, Region *region) HandleOldToNewRSet() argument
338 Region *region = Region::ObjectAddressToRange(object); UpdateLocalToShareRSet() local
356 SetLocalToShareRSet(ObjectSlot slot, Region *region) SetLocalToShareRSet() argument
426 Region *region = Region::ObjectAddressToRange(object); ShouldBePromoted() local
512 Region *region = Region::ObjectAddressToRange(object); EvacuateObject() local
532 NeedEvacuate(Region *region) NeedEvacuate() argument
[all...]
H A Dlinear_space.h49 Region *region = GetCurrentRegion(); in RecordCurrentRegionAsHalfFresh() local
50 ASSERT(region != nullptr); in RecordCurrentRegionAsHalfFresh()
51 ASSERT(!region->IsFreshRegion() && !region->IsHalfFreshRegion()); in RecordCurrentRegionAsHalfFresh()
52 region->SetRegionTypeFlag(RegionTypeFlag::HALF_FRESH); in RecordCurrentRegionAsHalfFresh()
54 ASSERT(region->InRange(freshObjectWaterLine_)); in RecordCurrentRegionAsHalfFresh()
160 bool SwapRegion(Region *region, SemiSpace *fromSpace);
196 auto cb = [](Region *region) { in SetReadOnly()
197 region->SetReadOnlyAndMarked(); in SetReadOnly()
204 auto cb = [](Region *region) { in ClearReadOnly()
[all...]
H A Dparallel_evacuator.cpp126 DrainWorkloads(evacuateWorkloadSet_, [&](std::unique_ptr<Workload> &region) { in EvacuateSpace()
127 EvacuateRegion(allocator, region->GetRegion(), arrayTrackInfoSet); in EvacuateSpace()
163 void ParallelEvacuator::EvacuateRegion(TlabAllocator *allocator, Region *region, in EvacuateRegion() argument
166 bool isInEden = region->InEdenSpace(); in EvacuateRegion()
167 bool isInOldGen = region->InOldSpace(); in EvacuateRegion()
168 bool isBelowAgeMark = region->BelowAgeMark(); in EvacuateRegion()
173 if (WholeRegionEvacuate(region)) { in EvacuateRegion()
176 region->IterateAllMarkedBits([this, &region, &isInOldGen, &isBelowAgeMark, isInEden, &pgoEnabled, in EvacuateRegion()
178 ASSERT(region in EvacuateRegion()
453 UpdateRSet(Region *region) UpdateRSet() argument
490 UpdateNewToEdenRSetReference(Region *region) UpdateNewToEdenRSetReference() argument
501 UpdateNewRegionReference(Region *region) UpdateNewRegionReference() argument
535 UpdateAndSweepNewRegionReference(Region *region) UpdateAndSweepNewRegionReference() argument
606 std::unique_ptr<Workload> region; DrainWorkloads() local
[all...]
H A Dparallel_marker.cpp39 heap_->EnumerateNewSpaceRegions([this, threadId](Region *region) {this->HandleNewToEdenRSet(threadId, region);}); in ProcessNewToEden()
45 heap_->EnumerateNewSpaceRegions([this, threadId](Region *region) {this->HandleNewToEdenRSet(threadId, region);}); in ProcessNewToEdenNoMarkStack()
50 heap_->EnumerateOldSpaceRegions([this, threadId](Region *region) { in ProcessOldToNew()
51 this->HandleOldToNewRSet(threadId, region); in ProcessOldToNew()
58 heap_->EnumerateOldSpaceRegions([this, threadId](Region *region) { in ProcessOldToNewNoMarkStack()
59 this->HandleOldToNewRSet(threadId, region); in ProcessOldToNewNoMarkStack()
63 void Marker::ProcessOldToNew(uint32_t threadId, Region *region) in ProcessOldToNew() argument
65 heap_->EnumerateOldSpaceRegions([this, threadId](Region *region) { in ProcessOldToNew()
138 Region *region = Region::ObjectAddressToRange(obj); ProcessMarkStack() local
184 Region *region = Region::ObjectAddressToRange(obj); ProcessIncrementalMarkStack() local
[all...]
H A Dallocator-inl.h82 void FreeListAllocator<T>::Initialize(Region *region) in Initialize() argument
84 bpAllocator_.Reset(region->GetBegin(), region->GetEnd()); in Initialize()
96 void FreeListAllocator<T>::AddFree(Region *region) in AddFree() argument
98 auto begin = region->GetBegin(); in AddFree()
99 auto end = region->GetEnd(); in AddFree()
213 inline void FreeListAllocator<T>::CollectFreeObjectSet(Region *region) in CollectFreeObjectSet() argument
215 region->EnumerateFreeObjectSets([&](FreeObjectSet<T> *set) { in CollectFreeObjectSet()
221 freeList_->IncreaseWastedSize(region->GetWastedSize()); in CollectFreeObjectSet()
225 inline bool FreeListAllocator<T>::MatchFreeObjectSet(Region *region, size_ argument
239 DetachFreeObjectSet(Region *region) DetachFreeObjectSet() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
H A Dshared_space.cpp151 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, sHeap_); in Expand() local
152 if (region == nullptr) { // LOCV_EXCL_BR_LINE in Expand()
153 LOG_ECMA(FATAL) << "SharedSparseSpace::Expand:region is nullptr"; in Expand()
155 AddRegion(region); in Expand()
156 allocator_->AddFree(region); in Expand()
162 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, sHeap_); in AllocateDeserializeRegion() local
163 if (region == nullptr) { // LOCV_EXCL_BR_LINE in AllocateDeserializeRegion()
164 LOG_ECMA(FATAL) << "SharedSparseSpace::AllocateDeserializeRegion:region is nullptr"; in AllocateDeserializeRegion()
166 return region; in AllocateDeserializeRegion()
172 for (auto region in MergeDeserializeAllocateRegions()
245 Region *region = nullptr; TryFillSweptRegion() local
260 AddSweepingRegion(Region *region) AddSweepingRegion() argument
276 Region *region = nullptr; GetSweepingRegionSafe() local
284 AddSweptRegionSafe(Region *region) AddSweptRegionSafe() argument
293 Region *region = nullptr; GetSweptRegionSafe() local
321 DetachFreeObjectSet(Region *region) DetachFreeObjectSet() argument
462 AddRegionToList(Region *region) AddRegionToList() argument
519 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, heap_); Expand() local
609 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, alignedSize, thread, heap_); Allocate() local
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp96 BitMemoryRegion region(data.data(), 0, data.size() * BITS_PER_UINT64); in TEST()
97 ss << region; in TEST() local
104 BitMemoryRegion region(data.data(), 0, 130); in TEST()
105 ss << region; in TEST() local
113 BitMemoryRegion region(data.data(), 1, 65); in TEST()
114 ss << region; in TEST() local
122 BitMemoryRegion region(data.data(), 0, 129); in TEST()
123 ss << region; in TEST() local
141 BitMemoryRegion region(data.data(), 40, 40); in TEST()
142 ss << region; in TEST() local
150 ss << region; TEST() local
159 ss << region; TEST() local
169 ss << region; TEST() local
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp98 BitMemoryRegion region(data.data(), 0U, data.size() * BITS_PER_UINT64); in TEST()
99 ss << region; in TEST() local
106 BitMemoryRegion region(data.data(), 0U, 130U); in TEST()
107 ss << region; in TEST() local
115 BitMemoryRegion region(data.data(), 1U, 65U); in TEST()
116 ss << region; in TEST() local
124 BitMemoryRegion region(data.data(), 0U, 129U); in TEST()
125 ss << region; in TEST() local
133 BitMemoryRegion region(data.data(), 40U, 40U); in TEST()
134 ss << region; in TEST() local
142 ss << region; TEST() local
151 ss << region; TEST() local
161 ss << region; TEST() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1-gc.cpp49 Region *region = ObjectToRegion(object); in CalcLiveBytesMarkPreprocess() local
51 region->AddLiveBytes<true>(objectSize); in CalcLiveBytesMarkPreprocess()
58 Region *region = ObjectToRegion(object); in CalcLiveBytesNotAtomicallyMarkPreprocess() local
60 region->AddLiveBytes<false>(objectSize); in CalcLiveBytesNotAtomicallyMarkPreprocess()
131 void G1GC<LanguageConfig>::DoRegionCompacting(Region *region, bool useGcWorkers, in DoRegionCompacting() argument
141 size_t moveSize = region->GetAllocatedBytes(); in DoRegionCompacting()
154 internalAllocator->template New<GCRegionCompactWorkersTask::RegionDataType>(region, movedObjectSaver); in DoRegionCompacting()
158 RegionCompactingImpl<true, REGION_TYPE, FULL_GC>(region, movedObjectSaver); in DoRegionCompacting()
161 RegionCompactingImpl<false, REGION_TYPE, FULL_GC>(region, movedObjectSaver); in DoRegionCompacting()
167 ScopedRegionCollectionInfo(const GC *gc, const char *title, const Region *region, boo argument
198 auto region = regionInfo.region_; operator <<() local
220 RegionPromotionImpl(Region *region, const ObjectVisitor &movedObjectSaver) RegionPromotionImpl() argument
259 IterateOverRefsInMemRange(const MemRange &memRange, Region *region, Handler &refsHandler) IterateOverRefsInMemRange() argument
300 Region *region = ObjectToRegion(objectHeader); operator ()() local
446 RegionCompactingImpl(Region *region, const ObjectVisitor &movedObjectSaver) RegionCompactingImpl() argument
604 ExecuteCompactingTask(Region *region, const ObjectVisitor &movedObjectsSaver) ExecuteCompactingTask() argument
807 Region *region = *curRegionIt; CollectAndMoveTenuredRegions() local
810 LOG_DEBUG_GC << "Add region " << *region << " to a collection set"; CollectAndMoveTenuredRegions() local
817 LOG_DEBUG_GC << "Skip region " << *region << " because it has no garbage inside"; CollectAndMoveTenuredRegions() local
951 auto *region = regions.top().second; GetOldCollectionSetCandidatesNumber() local
1211 auto region = ark::mem::AddrToRegion(ToVoidPtr(addr)); MergeRemSet() local
2047 auto *region = movableGarbageRegions.top().second; GetFullCollectionSet() local
2054 LOG_DEBUG_GC << *region; GetFullCollectionSet() local
2355 auto region = ark::mem::AddrToRegion(ToVoidPtr(addr)); CacheRefsFromDirtyCards() local
[all...]
H A Dcard_handler.h61 // object is allocated in the memory region covered by the card. in operator ()()
84 auto *region = AddrToRegion(startAddress); in Handle() local
85 ASSERT(region != nullptr); in Handle()
86 ASSERT_PRINT(region->GetLiveBitmap() != nullptr, "Region " << region << " GetLiveBitmap() == nullptr"); in Handle()
88 RegionRemsetBuilder<LanguageConfig> remsetBuilder(region, startAddress, endAddress, regionSizeBits_, deferCards_, in Handle()
90 if (region->HasFlag(RegionFlag::IS_LARGE_OBJECT)) { in Handle()
91 region->GetLiveBitmap()->CallForMarkedChunkInHumongousRegion<true>(ToVoidPtr(region->Begin()), remsetBuilder); in Handle()
93 region in Handle()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dgraph_linearizer.h286 GateInfo(GateRegion* region) : region(region) {} in GateInfo()
287 GateRegion* region {nullptr};
351 return info.region;
366 void AddFixedGateToRegion(GateRef gate, GateRegion* region)
370 info.upperBound = region;
371 ASSERT(info.region == nullptr);
372 info.region = region;
395 BindGate(GateRef gate, GateRegion* region) BindGate() argument
407 GateRegion* region = GateToRegion(gate); IsScheduled() local
441 GetLoopInfo(GateRegion *region) GetLoopInfo() argument
[all...]
H A Dgraph_linearizer.cpp49 // connect region in Run()
62 auto region = linearizer_->FindPredRegion(state); in Run() local
63 linearizer_->AddFixedGateToRegion(fixedGate, region); in Run()
64 linearizer_->BindGate(fixedGate, region); in Run()
149 info.region = currentRegion_; in VisitStateGate()
387 for (auto region : *loopInfo.loopExits) { in PrintLoop()
388 auto current = region->state_; in PrintLoop()
403 GateRegion* curRegion = curState.region; in ComputeLoopInfo()
448 auto curRegion = curState.region; in ComputeLoopNumber()
481 auto curRegion = curState.region; in ComputeLoopTree()
549 Push(GateRegion *region, size_t depth) Push() argument
565 GateRegion *region; global() member
590 auto region = linearizer_->GateToRegion(fixedGate); InitializeFixedGate() local
703 auto region = GetCommonDominatorOfAllUses(curGate); ComputeLowerBoundAndScheduleGate() local
721 GetUpperBoundRegion(GateRegion* region) GetUpperBoundRegion() argument
736 ScheduleAllocRegion(GateRef gate, GateRegion* region) ScheduleAllocRegion() argument
761 CheckRegionDomLoopExist(GateRegion* region, GraphLinearizer::LoopInfo* loopInfo) CheckRegionDomLoopExist() argument
774 ScheduleGate(GateRef gate, GateRegion* region) ScheduleGate() argument
794 GateRegion* region = nullptr; GetCommonDominatorOfAllUses() local
832 GateRegion* region = linearizer_->GateToRegion(gate); ScheduleFixedGate() local
885 auto region = new (chunk_) GateRegion(chunk_); CreateGateRegion() local
931 OptimizeControls(GateRegion *region) OptimizeControls() argument
[all...]

Completed in 17 milliseconds

12345