Lines Matching refs:ref

50       // the is_gray load to the ref field (ptr) load to avoid needing a load-load barrier between
59 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>();
60 MirrorType* old_ref = ref;
63 ref = reinterpret_cast<MirrorType*>(Mark(ref));
66 if (kAlwaysUpdateField && ref != old_ref) {
68 offset, old_ref, ref);
71 AssertToSpaceInvariant(obj, offset, ref);
72 return ref;
77 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>();
78 MirrorType* old_ref = ref;
82 ref = reinterpret_cast<MirrorType*>(Mark(old_ref));
84 if (ref != old_ref) {
86 offset, old_ref, ref);
89 AssertToSpaceInvariant(obj, offset, ref);
90 return ref;
104 MirrorType* ref = *root;
117 ref = reinterpret_cast<MirrorType*>(Mark(ref));
119 AssertToSpaceInvariant(gc_root_source, ref);
120 return ref;
123 return ref;
128 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) {
129 MirrorType* old_ref = ref;
130 ref = reinterpret_cast<MirrorType*>(Mark(old_ref));
132 if (ref != old_ref) {
134 atomic_root->CompareAndSetStrongRelaxed(old_ref, ref);
137 AssertToSpaceInvariant(gc_root_source, ref);
138 return ref;
144 return ref;
152 MirrorType* ref = root->AsMirrorPtr();
158 ref = reinterpret_cast<MirrorType*>(Mark(ref));
160 AssertToSpaceInvariant(gc_root_source, ref);
161 return ref;
164 return ref;
169 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) {
170 auto old_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref);
171 ref = reinterpret_cast<MirrorType*>(Mark(ref));
172 auto new_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref);
180 AssertToSpaceInvariant(gc_root_source, ref);
181 return ref;
183 return ref;
188 inline MirrorType* ReadBarrier::IsMarked(MirrorType* ref) {
192 return ref;
195 if (ref == nullptr) {
200 return ref;
204 Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->IsMarked(ref));
226 mirror::Object* ref) {
228 if (ref == nullptr || IsDuringStartup()) {
232 AssertToSpaceInvariant(obj, offset, ref);
237 mirror::Object* ref) {
239 if (ref == nullptr || IsDuringStartup()) {
243 AssertToSpaceInvariant(gc_root_source, ref);