Home
last modified time | relevance | path

Searched refs:referent (Results 1 – 21 of 21) sorted by relevance

/art/runtime/native/
Djava_lang_ref_Reference.cc34 const ObjPtr<mirror::Object> referent = in Reference_getReferent() local
36 return soa.AddLocalReference<jobject>(referent); in Reference_getReferent()
47 const ObjPtr<mirror::Object> referent = ref->template GetReferent<kWithoutReadBarrier>(); in Reference_refersTo0() local
48 if (referent == other) { in Reference_refersTo0()
51 if (!gUseReadBarrier || referent.IsNull() || other.IsNull()) { in Reference_refersTo0()
66 return gc::collector::ConcurrentCopying::GetFwdPtrUnchecked(referent.Ptr()) == other.Ptr() ? in Reference_refersTo0()
Djava_lang_ref_FinalizerReference.cc40 const ObjPtr<mirror::Object> referent = in FinalizerReference_getReferent() local
42 return soa.AddLocalReference<jobject>(referent); in FinalizerReference_getReferent()
/art/tools/ahat/src/test/com/android/ahat/
DRiTest.java40 AhatInstance referent = ref.getReferent(); in finalizable() local
41 assertNotNull(referent); in finalizable()
42 assertEquals(Reachability.FINALIZER, referent.getReachability()); in finalizable()
DNativeAllocationTest.java33 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); in nativeAllocation() local
34 assertEquals(50000, referent.getSize().getRegisteredNativeSize()); in nativeAllocation()
DInstanceTest.java200 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); in basicReference() local
204 assertNotNull(referent); in basicReference()
205 assertEquals(referent, pref.getReferent()); in basicReference()
206 assertEquals(referent, wref.getReferent()); in basicReference()
208 assertNull(referent.getReferent()); in basicReference()
218 AhatInstance referent = ref.getReferent(); in unreachableReferent() local
219 assertNotNull(referent); in unreachableReferent()
220 assertEquals(Reachability.SOFT, referent.getReachability()); in unreachableReferent()
221 assertTrue(referent.isWeaklyReachable()); in unreachableReferent()
/art/test/2043-reference-pauses/src/
DMain.java145 Integer referent = wr.get(); in timeUnreachableInner() local
147 if (referent == null) { in timeUnreachableInner()
152 if (referent != null && referent.intValue() != j) { in timeUnreachableInner()
154 + referent.intValue()); in timeUnreachableInner()
198 Integer referent = wr.get(); in timeReachable() local
201 if (referent == null) { in timeReachable()
203 } else if (referent.intValue() != j) { in timeReachable()
205 + referent.intValue()); in timeReachable()
/art/runtime/gc/
Dreference_processor.cc101 ObjPtr<mirror::Object> referent = reference->template GetReferent<kWithoutReadBarrier>(); in GetReferent() local
102 if (referent.IsNull()) { in GetReferent()
103 return referent; in GetReferent()
150 referent = reference->GetReferent<kWithoutReadBarrier>(); in GetReferent()
152 referent.IsNull() ? nullptr : collector_->IsMarked(referent.Ptr()); in GetReferent()
323 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); in DelayReferenceReferent() local
326 if (!collector->IsNullOrMarkedHeapReference(referent, /*do_atomic_update=*/true)) { in DelayReferenceReferent()
331 if (!referent->IsNull()) { in DelayReferenceReferent()
332 collector->MarkHeapReference(referent, /*do_atomic_update=*/ true); in DelayReferenceReferent()
Dreference_queue.cc93 ObjPtr<mirror::Object> referent = ref->GetReferent<kWithoutReadBarrier>(); in DisableReadBarrierForReference() local
95 if (referent != nullptr) { in DisableReadBarrierForReference()
96 CHECK(concurrent_copying->IsInToSpace(referent.Ptr())) in DisableReadBarrierForReference()
98 << " referent=" << referent; in DisableReadBarrierForReference()
/art/runtime/mirror/
Dreference-inl.h34 inline void Reference::SetReferent(ObjPtr<Object> referent) { in SetReferent() argument
35 SetFieldObjectVolatile<kTransactionActive>(ReferentOffset(), referent); in SetReferent()
Dreference.h72 void SetReferent(ObjPtr<Object> referent) REQUIRES_SHARED(Locks::mutator_lock_);
/art/tools/ahat/src/test-dump/
DDumpedStuff.java120 public Object referent; field in DumpedStuff.Reference
122 public Reference(Object referent) { in Reference() argument
123 this.referent = referent; in Reference()
/art/tools/ahat/src/main/com/android/ahat/
DSummarizer.java83 AhatInstance referent = inst.getReferent(); in summarize() local
84 if (referent != null) { in summarize()
90 formatted.append(summarize(referent)); in summarize()
/art/runtime/
Dreference_table.cc203 ObjPtr<mirror::Object> referent = ref->AsReference()->GetReferent(); in Dump() local
204 if (referent == nullptr) { in Dump()
207 extras = StringPrintf(" (referent is a %s)", referent->PrettyTypeOf().c_str()); in Dump()
253 ObjPtr<mirror::Object> referent = ref->AsReference()->GetReferent(); in Dump() local
254 if (referent != nullptr) { in Dump()
255 print_stack(referent, "Referent allocated at:"); in Dump()
Dreference_table_test.cc50 static ObjPtr<mirror::Object> CreateWeakReference(ObjPtr<mirror::Object> referent) in CreateWeakReference() argument
56 Handle<mirror::Object> h_referent(scope.NewHandle<mirror::Object>(referent)); in CreateWeakReference()
218 jobject referent = soa.Env()->AddLocalReference<jobject>(h_with_trace.Get()); in TEST_F() local
219 jobject result = soa.Env()->NewObject(weak_ref_class, init, referent); in TEST_F()
Dclass_linker.cc1052 ArtField* referent = java_lang_ref_Reference->GetInstanceField(3); in FinishInit() local
1053 CHECK_STREQ(referent->GetName(), "referent"); in FinishInit()
1054 CHECK_STREQ(referent->GetTypeDescriptor(), "Ljava/lang/Object;"); in FinishInit()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatClassInstance.java338 Value referent = getField("referent"); in asRegisteredNativeAllocation() local
339 if (referent == null || !referent.isAhatInstance()) { in asRegisteredNativeAllocation()
344 rna.referent = referent.asAhatInstance(); in asRegisteredNativeAllocation()
DAhatSnapshot.java60 nra.referent.addRegisteredNativeSize(nra.size); in AhatSnapshot()
DAhatInstance.java599 public AhatInstance referent; field in AhatInstance.RegisteredNativeAllocation
/art/test/905-object-free/src/art/
DTest905.java40 public void add(Object referent) { in add() argument
41 mList.add(new PhantomReference(referent, mQueue)); in add()
/art/runtime/gc/collector/
Dconcurrent_copying.cc1453 mirror::Object* referent = in ScanDirtyObject() local
1455 if (referent != nullptr && !IsInToSpace(referent)) { in ScanDirtyObject()
2369 mirror::Object* referent = nullptr; in ProcessMarkStackRef() local
2371 (referent = to_ref->AsReference()->GetReferent<kWithoutReadBarrier>()) != nullptr && in ProcessMarkStackRef()
2372 !IsInToSpace(referent)))) { in ProcessMarkStackRef()
/art/runtime/interpreter/
Dunstarted_runtime.cc1454 const ObjPtr<mirror::Object> referent = in UnstartedReferenceGetReferent() local
1456 result->SetL(referent); in UnstartedReferenceGetReferent()
1469 const ObjPtr<mirror::Object> referent = in UnstartedReferenceRefersTo() local
1472 result->SetZ(o == referent); in UnstartedReferenceRefersTo()