Home
last modified time | relevance | path

Searched refs:new_ref (Results 1 – 12 of 12) sorted by relevance

/art/runtime/gc/collector/
Dmark_compact-inl.h252 mirror::Object* new_ref = PostCompactAddress(old_ref); in UpdateRef() local
253 if (new_ref != old_ref) { in UpdateRef()
257 new_ref); in UpdateRef()
298 mirror::Object* new_ref = PostCompactAddress(old_ref); in UpdateRoot() local
299 if (old_ref != new_ref) { in UpdateRoot()
300 root->Assign(new_ref); in UpdateRoot()
308 mirror::Object* new_ref = PostCompactAddress(old_ref); in UpdateRoot() local
309 if (old_ref != new_ref) { in UpdateRoot()
310 *root = new_ref; in UpdateRoot()
Dconcurrent_copying.cc3252 mirror::Object* new_ref = to_ref; in Process() local
3263 new_ref, in Process()
3281 mirror::Object* new_ref = to_ref; in VisitRoots() local
3287 } while (!addr->CompareAndSetWeakRelaxed(expected_ref, new_ref)); in VisitRoots()
3300 auto new_ref = mirror::CompressedReference<mirror::Object>::FromMirrorPtr(to_ref); in MarkRoot() local
3307 } while (!addr->CompareAndSetWeakRelaxed(expected_ref, new_ref)); in MarkRoot()
Dmark_compact.cc2589 mirror::Object* new_ref = old_ref; in VisitRoot() local
2591 new_ref = collector_->PostCompactBlackObjAddr(old_ref); in VisitRoot()
2594 new_ref = collector_->PostCompactOldObjAddr(old_ref); in VisitRoot()
2596 if (old_ref != new_ref) { in VisitRoot()
2597 root->Assign(new_ref); in VisitRoot()
/art/runtime/
Dintern_table.cc72 ObjPtr<mirror::String> new_ref = root.Read<kWithoutReadBarrier>(); in VisitRoots() local
73 if (new_ref != old_ref) { in VisitRoots()
77 DCHECK(new_ref != nullptr); in VisitRoots()
79 DCHECK_EQ(hash, static_cast<uint32_t>(new_ref->GetStoredHashCode())); in VisitRoots()
80 DCHECK(new_ref->Equals(old_ref)); in VisitRoots()
85 *it = GcRoot<mirror::String>(new_ref); in VisitRoots()
Dread_barrier-inl.h181 auto new_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref); in BarrierForRoot() local
183 if (new_ref.AsMirrorPtr() != old_ref.AsMirrorPtr()) { in BarrierForRoot()
186 atomic_root->CompareAndSetStrongRelaxed(old_ref, new_ref); in BarrierForRoot()
Dthread.cc4052 mirror::Object* new_ref = ref; in VisitShadowFrame() local
4053 visitor_(&new_ref, reg, this); in VisitShadowFrame()
4054 if (new_ref != ref) { in VisitShadowFrame()
4055 shadow_frame->SetVRegReference(reg, new_ref); in VisitShadowFrame()
4100 mirror::Object* new_ref = klass.Ptr(); in VisitDeclaringClass() local
4101 visitor_(&new_ref, /* vreg= */ JavaFrameRootInfo::kMethodDeclaringClass, this); in VisitDeclaringClass()
4102 if (new_ref != klass) { in VisitDeclaringClass()
4103 method->CASDeclaringClass(klass.Ptr(), new_ref->AsClass()); in VisitDeclaringClass()
4123 mirror::Object* new_ref = ref; in VisitNterpFrame() local
4124 visitor_(&new_ref, reg, this); in VisitNterpFrame()
[all …]
Dclass_linker.cc2415 ObjPtr<mirror::Class> new_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots() local
2417 CHECK_EQ(new_ref, old_ref); in VisitClassRoots()
2425 ObjPtr<mirror::Object> new_ref = root.Read<kWithoutReadBarrier>(); in VisitClassRoots() local
2427 CHECK_EQ(new_ref, old_ref); in VisitClassRoots()
/art/runtime/mirror/
Dobject-inl.h692 uint32_t new_ref(PtrCompression<kPoisonHeapReferences, Object>::Compress(new_value)); in CasFieldObjectWithoutWriteBarrier()
695 return atomic_addr->CompareAndSet(old_ref, new_ref, mode, memory_order); in CasFieldObjectWithoutWriteBarrier()
723 uint32_t new_ref(PtrCompression<kPoisonHeapReferences, Object>::Compress(new_value)); in CompareAndExchangeFieldObject()
726 bool success = atomic_addr->compare_exchange_strong(old_ref, new_ref, std::memory_order_seq_cst); in CompareAndExchangeFieldObject()
748 uint32_t new_ref(PtrCompression<kPoisonHeapReferences, Object>::Compress(new_value)); in ExchangeFieldObject()
751 uint32_t old_ref = atomic_addr->exchange(new_ref, std::memory_order_seq_cst); in ExchangeFieldObject()
Dclass.cc1622 ObjPtr<Object> new_ref = ReadBarrier::BarrierForRoot(root); in VisitRoot() local
1623 if (old_ref != new_ref) { in VisitRoot()
1629 CompressedReference<Object>::FromMirrorPtr(new_ref.Ptr())); in VisitRoot()
/art/runtime/gc/accounting/
Dmod_union_table.cc222 mirror::Object* new_ref = visitor_->MarkObject(old_ref); in VisitRoot() local
223 if (old_ref != new_ref) { in VisitRoot()
224 root->Assign(new_ref); in VisitRoot()
/art/runtime/jni/
Dlocal_reference_table_test.cc819 IndirectRef new_ref = lrt.Add(cookie0, c, &error_msg); in TEST_F() local
820 ASSERT_TRUE(new_ref != nullptr); in TEST_F()
1007 IndirectRef new_ref = lrt.Add(cookie0, c, &error_msg); in TEST_F() local
1008 ASSERT_TRUE(new_ref != nullptr); in TEST_F()
1009 ASSERT_NE(new_ref, removed); in TEST_F()
1010 ASSERT_EQ(new_ref, refs[0]); in TEST_F()
/art/runtime/gc/space/
Dimage_space.cc1166 mirror::Object* new_ref = forward_(ref); in VisitRoot() local
1167 if (ref != new_ref) { in VisitRoot()
1168 root->Assign(new_ref); in VisitRoot()