Lines Matching refs:from_ref

182     mirror::Object* from_ref = field->AsMirrorPtr();  in MarkHeapReference()  local
183 if (from_ref == nullptr) { in MarkHeapReference()
186 mirror::Object* to_ref = Mark(self, from_ref); in MarkHeapReference()
187 if (from_ref != to_ref) { in MarkHeapReference()
189 if (field->AsMirrorPtr() != from_ref) { in MarkHeapReference()
193 } while (!field->CasWeakRelaxed(from_ref, to_ref)); in MarkHeapReference()
3070 bool ConcurrentCopying::IsMarkedInNonMovingSpace(mirror::Object* from_ref) { in IsMarkedInNonMovingSpace() argument
3071 DCHECK(!region_space_->HasAddress(from_ref)) << "ref=" << from_ref; in IsMarkedInNonMovingSpace()
3072 DCHECK(!immune_spaces_.ContainsObject(from_ref)) << "ref=" << from_ref; in IsMarkedInNonMovingSpace()
3073 if (kUseBakerReadBarrier && from_ref->GetReadBarrierStateAcquire() == ReadBarrier::GrayState()) { in IsMarkedInNonMovingSpace()
3079 const bool is_los = !mark_bitmap->HasAddress(from_ref); in IsMarkedInNonMovingSpace()
3081 DCHECK(heap_->GetLargeObjectsSpace() && heap_->GetLargeObjectsSpace()->Contains(from_ref)) in IsMarkedInNonMovingSpace()
3082 << "ref=" << from_ref in IsMarkedInNonMovingSpace()
3086 if (is_los ? los_bitmap->Test(from_ref) : mark_bitmap->Test(from_ref)) { in IsMarkedInNonMovingSpace()
3090 return IsOnAllocStack(from_ref); in IsMarkedInNonMovingSpace()
3420 mirror::Object* from_ref, in Copy() argument
3423 DCHECK(region_space_->IsInFromSpace(from_ref)); in Copy()
3426 mirror::Class* klass = from_ref->GetClass<kVerifyNone, kWithoutReadBarrier>(); in Copy()
3430 heap_->GetVerification()->LogHeapCorruption(holder, offset, from_ref, /* fatal= */ true); in Copy()
3435 size_t obj_size = from_ref->SizeOf<kDefaultVerifyFlags>(); in Copy()
3476 << region_space_->GetRegionType(from_ref); in Copy()
3477 LOG(FATAL) << "Object address=" << from_ref << " type=" << from_ref->PrettyTypeOf(); in Copy()
3494 reinterpret_cast<const uint8_t*>(from_ref) + kObjectHeaderSize, in Copy()
3500 LockWord old_lock_word = from_ref->GetLockWord(false); in Copy()
3551 bool success = from_ref->CasLockWord(old_lock_word, in Copy()
3583 DCHECK(GetFwdPtr(from_ref) == to_ref); in Copy()
3597 mirror::Object* ConcurrentCopying::IsMarked(mirror::Object* from_ref) { in IsMarked() argument
3598 DCHECK(from_ref != nullptr); in IsMarked()
3599 space::RegionSpace::RegionType rtype = region_space_->GetRegionType(from_ref); in IsMarked()
3602 return from_ref; in IsMarked()
3606 to_ref = GetFwdPtr(from_ref); in IsMarked()
3609 << "from_ref=" << from_ref << " to_ref=" << to_ref; in IsMarked()
3611 if (IsMarkedInUnevacFromSpace(from_ref)) { in IsMarked()
3612 to_ref = from_ref; in IsMarked()
3619 DCHECK(!region_space_->HasAddress(from_ref)) << from_ref; in IsMarked()
3621 if (immune_spaces_.ContainsObject(from_ref)) { in IsMarked()
3623 to_ref = from_ref; in IsMarked()
3626 if (IsMarkedInNonMovingSpace(from_ref)) { in IsMarked()
3628 to_ref = from_ref; in IsMarked()
3796 mirror::Object* from_ref = field->AsMirrorPtr(); in IsNullOrMarkedHeapReference() local
3797 if (from_ref == nullptr) { in IsNullOrMarkedHeapReference()
3800 mirror::Object* to_ref = IsMarked(from_ref); in IsNullOrMarkedHeapReference()
3804 if (from_ref != to_ref) { in IsNullOrMarkedHeapReference()
3807 if (field->AsMirrorPtr() != from_ref) { in IsNullOrMarkedHeapReference()
3811 } while (!field->CasWeakRelaxed(from_ref, to_ref)); in IsNullOrMarkedHeapReference()
3819 mirror::Object* ConcurrentCopying::MarkObject(mirror::Object* from_ref) { in MarkObject() argument
3820 return Mark(Thread::Current(), from_ref); in MarkObject()
3842 mirror::Object* from_ref) { in MarkFromReadBarrierWithMeasurements() argument
3852 from_ref); in MarkFromReadBarrierWithMeasurements()