Lines Matching refs:region
105 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, localHeap_,
107 allocator_.Reset(region->GetBegin(), region->GetEnd());
108 AddRegion(region);
130 EnumerateRegions([&](Region *region) {
131 auto curPtr = region->GetBegin();
133 if (region == current) {
135 endPtr = curPtr + region->GetAllocatedBytes(top);
137 endPtr = curPtr + region->GetAllocatedBytes();
195 auto region = AllocRegion();
196 if (UNLIKELY(region == nullptr)) {
197 LOG_GC(ERROR) << "EdenSpace::Initialize: region is nullptr";
200 AddRegion(region);
201 allocator_.Reset(region->GetBegin(), region->GetEnd());
262 LOG_ECMA_IF(AlignUp(mem, PANDA_POOL_ALIGNMENT_IN_BYTES) != mem, FATAL) << "region not align by 256KB";
267 auto region = new (ToVoidPtr(mem)) Region(localHeap_->GetNativeAreaAllocator(), mem, begin, end,
269 region->Initialize();
270 return region;
275 Region *region = AllocRegion();
276 if (region == nullptr) {
291 allocator_.Reset(region->GetBegin(), region->GetEnd());
292 AddRegion(region);
300 LOG_GC(DEBUG) << "Clear region from: " << current << " to " << spaceName;
350 Region *region = heapRegionAllocator_->AllocateAlignedRegion(this, DEFAULT_REGION_SIZE, thread, localHeap_);
351 AddRegion(region);
352 allocator_.Reset(region->GetBegin(), region->GetEnd());
381 bool SemiSpace::SwapRegion(Region *region, SemiSpace *fromSpace)
384 if (committedSize_ + region->GetCapacity() > maximumCapacity_ + overShootSize_) {
387 fromSpace->RemoveRegion(region);
389 region->SetGCFlag(RegionGCFlags::IN_NEW_TO_NEW_SET);
392 region->ResetInactiveSemiSpace();
395 regionList_.AddNodeToFront(region);
396 IncreaseCommitted(region->GetCapacity());
397 IncreaseObjectSize(region->GetSize());
398 survivalObjectSize_ += region->GetAllocatedBytes();
417 LOG_GC(INFO) << "SetWaterLine: No region survival in current gc, current region available size: "