• Home
  • Raw
  • Download

Lines Matching refs:ref

55       MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>();  in Barrier()  local
56 MirrorType* old_ref = ref; in Barrier()
59 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in Barrier()
62 if (kAlwaysUpdateField && ref != old_ref) { in Barrier()
65 ref, in Barrier()
70 AssertToSpaceInvariant(obj, offset, ref); in Barrier()
71 return ref; in Barrier()
73 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>(); in Barrier() local
74 MirrorType* old_ref = ref; in Barrier()
78 ref = reinterpret_cast<MirrorType*>(Mark(old_ref)); in Barrier()
80 if (ref != old_ref) { in Barrier()
83 ref, in Barrier()
88 AssertToSpaceInvariant(obj, offset, ref); in Barrier()
89 return ref; in Barrier()
103 MirrorType* ref = *root; in BarrierForRoot() local
116 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in BarrierForRoot()
118 AssertToSpaceInvariant(gc_root_source, ref); in BarrierForRoot()
119 return ref; in BarrierForRoot()
124 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot()
125 MirrorType* old_ref = ref; in BarrierForRoot()
126 ref = reinterpret_cast<MirrorType*>(Mark(old_ref)); in BarrierForRoot()
128 if (ref != old_ref) { in BarrierForRoot()
130 atomic_root->CompareAndSetStrongRelaxed(old_ref, ref); in BarrierForRoot()
133 AssertToSpaceInvariant(gc_root_source, ref); in BarrierForRoot()
134 return ref; in BarrierForRoot()
140 return ref; in BarrierForRoot()
148 MirrorType* ref = root->AsMirrorPtr(); in BarrierForRoot() local
161 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in BarrierForRoot()
163 AssertToSpaceInvariant(gc_root_source, ref); in BarrierForRoot()
164 return ref; in BarrierForRoot()
169 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot()
170 auto old_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref); in BarrierForRoot()
171 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in BarrierForRoot()
172 auto new_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref); in BarrierForRoot()
180 AssertToSpaceInvariant(gc_root_source, ref); in BarrierForRoot()
181 return ref; in BarrierForRoot()
187 return ref; in BarrierForRoot()
192 inline MirrorType* ReadBarrier::IsMarked(MirrorType* ref) { in IsMarked() argument
196 return ref; in IsMarked()
199 if (ref == nullptr) { in IsMarked()
204 return ref; in IsMarked()
208 Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->IsMarked(ref)); in IsMarked()
230 mirror::Object* ref) { in AssertToSpaceInvariant() argument
232 if (ref == nullptr || IsDuringStartup()) { in AssertToSpaceInvariant()
236 AssertToSpaceInvariant(obj, offset, ref); in AssertToSpaceInvariant()
241 mirror::Object* ref) { in AssertToSpaceInvariant() argument
243 if (ref == nullptr || IsDuringStartup()) { in AssertToSpaceInvariant()
247 AssertToSpaceInvariant(gc_root_source, ref); in AssertToSpaceInvariant()