Lines Matching refs:r
86 Region* r = ®ions_[i]; in FromSpaceSize() local
87 if (r->IsInFromSpace()) { in FromSpaceSize()
98 Region* r = ®ions_[i]; in UnevacFromSpaceSize() local
99 if (r->IsInUnevacFromSpace()) { in UnevacFromSpaceSize()
110 Region* r = ®ions_[i]; in ToSpaceSize() local
111 if (r->IsInToSpace()) { in ToSpaceSize()
158 Region* r = ®ions_[i]; in SetFromSpace() local
159 RegionState state = r->State(); in SetFromSpace()
160 RegionType type = r->Type(); in SetFromSpace()
161 if (!r->IsFree()) { in SetFromSpace()
162 DCHECK(r->IsInToSpace()); in SetFromSpace()
167 bool should_evacuate = force_evacuate_all || r->ShouldBeEvacuated(); in SetFromSpace()
169 r->SetAsFromSpace(); in SetFromSpace()
170 DCHECK(r->IsInFromSpace()); in SetFromSpace()
172 r->SetAsUnevacFromSpace(); in SetFromSpace()
173 DCHECK(r->IsInUnevacFromSpace()); in SetFromSpace()
178 num_expected_large_tails = RoundUp(r->BytesAllocated(), kRegionSize) / kRegionSize - 1; in SetFromSpace()
185 r->SetAsFromSpace(); in SetFromSpace()
186 DCHECK(r->IsInFromSpace()); in SetFromSpace()
188 r->SetAsUnevacFromSpace(); in SetFromSpace()
189 DCHECK(r->IsInUnevacFromSpace()); in SetFromSpace()
197 rb_table->Clear(r->Begin(), r->End()); in SetFromSpace()
208 Region* r = ®ions_[i]; in ClearFromSpace() local
209 if (r->IsInFromSpace()) { in ClearFromSpace()
210 r->Clear(); in ClearFromSpace()
212 } else if (r->IsInUnevacFromSpace()) { in ClearFromSpace()
213 r->SetUnevacFromSpaceAsToSpace(); in ClearFromSpace()
223 Region* r = ®ions_[i]; in AssertAllRegionLiveBytesZeroOrCleared() local
224 size_t live_bytes = r->LiveBytes(); in AssertAllRegionLiveBytesZeroOrCleared()
245 Region* r = ®ions_[i]; in LogFragmentationAllocFailure() local
246 if (r->IsFree()) { in LogFragmentationAllocFailure()
273 Region* r = ®ions_[i]; in Clear() local
274 if (!r->IsFree()) { in Clear()
277 r->Clear(); in Clear()
331 Region* r = RefToRegion(ref); in RecordAlloc() local
332 reinterpret_cast<Atomic<uint64_t>*>(&r->objects_allocated_)->FetchAndAddSequentiallyConsistent(1); in RecordAlloc()
343 Region* r = ®ions_[i]; in AllocNewTlab() local
344 if (r->IsFree()) { in AllocNewTlab()
345 r->Unfree(time_); in AllocNewTlab()
349 r->SetTop(r->End()); in AllocNewTlab()
350 r->is_a_tlab_ = true; in AllocNewTlab()
351 r->thread_ = self; in AllocNewTlab()
352 self->SetTlab(r->Begin(), r->End()); in AllocNewTlab()
370 Region* r = RefToRegionLocked(reinterpret_cast<mirror::Object*>(tlab_start)); in RevokeThreadLocalBuffersLocked() local
371 DCHECK(r->IsAllocated()); in RevokeThreadLocalBuffersLocked()
373 r->RecordThreadLocalAllocations(thread->GetThreadLocalObjectsAllocated(), in RevokeThreadLocalBuffersLocked()
375 r->is_a_tlab_ = false; in RevokeThreadLocalBuffersLocked()
376 r->thread_ = nullptr; in RevokeThreadLocalBuffersLocked()