Lines Matching refs:region

151     Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, sHeap_);
152 if (region == nullptr) { // LOCV_EXCL_BR_LINE
153 LOG_ECMA(FATAL) << "SharedSparseSpace::Expand:region is nullptr";
155 AddRegion(region);
156 allocator_->AddFree(region);
162 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, sHeap_);
163 if (region == nullptr) { // LOCV_EXCL_BR_LINE
164 LOG_ECMA(FATAL) << "SharedSparseSpace::AllocateDeserializeRegion:region is nullptr";
166 return region;
172 for (auto region : allocateRegions) {
173 AddRegion(region);
174 allocator_->AddFree(region);
175 allocator_->ResetTopPointer(region->GetHighWaterMark());
176 region->SetHighWaterMark(region->GetEnd());
221 // Main thread sweeping region is added;
245 Region *region = nullptr;
246 while ((region = GetSweptRegionSafe()) != nullptr) {
247 allocator_->CollectFreeObjectSet(region);
248 region->ResetSwept();
260 void SharedSparseSpace::AddSweepingRegion(Region *region)
262 sweepingList_.emplace_back(region);
276 Region *region = nullptr;
278 region = sweepingList_.back();
281 return region;
284 void SharedSparseSpace::AddSweptRegionSafe(Region *region)
287 sweptList_.emplace_back(region);
293 Region *region = nullptr;
295 region = sweptList_.back();
298 return region;
321 void SharedSparseSpace::DetachFreeObjectSet(Region *region)
323 allocator_->DetachFreeObjectSet(region);
328 // No need to clear rememberset here, because shared region has no remember set now.
335 EnumerateRegions([&](Region *region) {
336 uintptr_t curPtr = region->GetBegin();
337 uintptr_t endPtr = region->GetEnd();
436 localSpace->EnumerateRegions([&](Region *region) {
437 localSpace->DetachFreeObjectSet(region);
438 localSpace->RemoveRegion(region);
439 localSpace->DecreaseLiveObjectSize(region->AliveObject());
440 AddRegion(region);
441 IncreaseLiveObjectSize(region->AliveObject());
442 allocator_->CollectFreeObjectSet(region);
462 bool SharedLocalSpace::AddRegionToList(Region *region)
468 AddRegion(region);
469 allocator_->CollectFreeObjectSet(region);
470 IncreaseLiveObjectSize(region->AliveObject());
491 // Shared Full GC will compress all regions and cannot recognize all threads' region.
519 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, heap_);
520 if (region == nullptr) { // LOCV_EXCL_BR_LINE
521 LOG_ECMA(FATAL) << "SharedReadOnlySpace::Expand:region is nullptr";
523 allocator_.Reset(region->GetBegin(), region->GetEnd());
524 AddRegion(region);
554 EnumerateRegions([&](Region *region) {
555 if (region->InCollectSet()) {
558 uintptr_t curPtr = region->GetBegin();
559 uintptr_t endPtr = region->GetEnd();
609 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, alignedSize, thread, heap_);
610 if (region == nullptr) { // LOCV_EXCL_BR_LINE
611 LOG_ECMA(FATAL) << "SharedHugeObjectSpace::Allocate:region is nullptr";
613 AddRegion(region);
615 ASAN_UNPOISON_MEMORY_REGION(reinterpret_cast<void *>(region->GetBegin()), objectSize);
617 InvokeAllocationInspector(region->GetBegin(), objectSize);
619 return region->GetBegin();
644 EnumerateRegions([&](Region *region) {
645 uintptr_t curPtr = region->GetBegin();