Home
last modified time | relevance | path

Searched refs:old_ref (Results 1 – 6 of 6) sorted by relevance

/aosp12/art/runtime/
H A Dread_barrier-inl.h59 MirrorType* old_ref = ref; in Barrier() local
65 if (kAlwaysUpdateField && ref != old_ref) { in Barrier()
80 MirrorType* old_ref = ref; in Barrier() local
84 ref = reinterpret_cast<MirrorType*>(Mark(old_ref)); in Barrier()
86 if (ref != old_ref) { in Barrier()
134 MirrorType* old_ref = ref; in BarrierForRoot() local
135 ref = reinterpret_cast<MirrorType*>(Mark(old_ref)); in BarrierForRoot()
137 if (ref != old_ref) { in BarrierForRoot()
139 atomic_root->CompareAndSetStrongRelaxed(old_ref, ref); in BarrierForRoot()
179 if (new_ref.AsMirrorPtr() != old_ref.AsMirrorPtr()) { in BarrierForRoot()
[all …]
H A Dintern_table.cc69 ObjPtr<mirror::String> old_ref = root.Read<kWithoutReadBarrier>(); in VisitRoots() local
72 if (new_ref != old_ref) { in VisitRoots()
76 strong_interns_.Remove(old_ref); in VisitRoots()
H A Dclass_linker.cc2141 ObjPtr<mirror::Class> old_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots() local
2145 CHECK_EQ(new_ref, old_ref); in VisitClassRoots()
2149 ObjPtr<mirror::Object> old_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots() local
2150 if (old_ref != nullptr) { in VisitClassRoots()
2151 DCHECK(old_ref->IsClass()); in VisitClassRoots()
2155 CHECK_EQ(new_ref, old_ref); in VisitClassRoots()
/aosp12/art/runtime/mirror/
H A Dobject-inl.h691 uint32_t old_ref(PtrCompression<kPoisonHeapReferences, Object>::Compress(old_value)); in CasFieldObjectWithoutWriteBarrier()
695 return atomic_addr->CompareAndSet(old_ref, new_ref, mode, memory_order); in CasFieldObjectWithoutWriteBarrier()
722 uint32_t old_ref(PtrCompression<kPoisonHeapReferences, Object>::Compress(old_value)); in CompareAndExchangeFieldObject()
726 bool success = atomic_addr->compare_exchange_strong(old_ref, new_ref, std::memory_order_seq_cst); in CompareAndExchangeFieldObject()
727 ObjPtr<Object> witness_value(PtrCompression<kPoisonHeapReferences, Object>::Decompress(old_ref)); in CompareAndExchangeFieldObject()
751 uint32_t old_ref = atomic_addr->exchange(new_ref, std::memory_order_seq_cst); in ExchangeFieldObject() local
752 ObjPtr<Object> old_value(PtrCompression<kPoisonHeapReferences, Object>::Decompress(old_ref)); in ExchangeFieldObject()
H A Dclass.cc1275 ObjPtr<Object> old_ref = root->AsMirrorPtr(); in VisitRoot() local
1277 if (old_ref != new_ref) { in VisitRoot()
1282 CompressedReference<Object>::FromMirrorPtr(old_ref.Ptr()), in VisitRoot()
/aosp12/art/runtime/gc/accounting/
H A Dmod_union_table.cc221 mirror::Object* old_ref = root->AsMirrorPtr(); in VisitRoot() local
222 mirror::Object* new_ref = visitor_->MarkObject(old_ref); in VisitRoot()
223 if (old_ref != new_ref) { in VisitRoot()