Home
last modified time | relevance | path

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

/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/runtime/gc/
Dreference_processor.cc95 const ObjPtr<mirror::Object> referent = reference->GetReferent(); in GetReferent() local
98 if (UNLIKELY(!SlowPathEnabled()) || referent == nullptr) { in GetReferent()
99 return referent; in GetReferent()
105 ObjPtr<mirror::Object> referent = reference->GetReferent<kWithoutReadBarrier>(); in GetReferent() local
108 if (referent == nullptr) { in GetReferent()
123 ObjPtr<mirror::Object> forwarded_ref = collector_->IsMarked(referent.Ptr()); in GetReferent()
240 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); in DelayReferenceReferent() local
243 if (!collector->IsNullOrMarkedHeapReference(referent, /*do_atomic_update=*/true)) { in DelayReferenceReferent()
248 if (!referent->IsNull()) { in DelayReferenceReferent()
249 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.h70 void SetReferent(ObjPtr<Object> referent) REQUIRES_SHARED(Locks::mutator_lock_);
/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()
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-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.cc45 static ObjPtr<mirror::Object> CreateWeakReference(ObjPtr<mirror::Object> referent) in CreateWeakReference() argument
51 Handle<mirror::Object> h_referent(scope.NewHandle<mirror::Object>(referent)); in CreateWeakReference()
219 jobject referent = soa.Env()->AddLocalReference<jobject>(h_with_trace.Get()); in TEST_F() local
220 jobject result = soa.Env()->NewObject(weak_ref_class, init, referent); in TEST_F()
Dclass_linker.cc879 ArtField* referent = java_lang_ref_Reference->GetInstanceField(3); in FinishInit() local
880 CHECK_STREQ(referent->GetName(), "referent"); in FinishInit()
881 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.java596 public AhatInstance referent; field in AhatInstance.RegisteredNativeAllocation
/art/test/905-object-free/src/art/
DTest905.java38 public void add(Object referent) { in add() argument
39 mList.add(new PhantomReference(referent, mQueue)); in add()
/art/runtime/gc/collector/
Dconcurrent_copying.cc1375 mirror::Object* referent = in ScanDirtyObject() local
1377 if (referent != nullptr && !IsInToSpace(referent)) { in ScanDirtyObject()
2242 mirror::Object* referent = nullptr; in ProcessMarkStackRef() local
2244 (referent = to_ref->AsReference()->GetReferent<kWithoutReadBarrier>()) != nullptr && in ProcessMarkStackRef()
2245 !IsInToSpace(referent)))) { in ProcessMarkStackRef()
/art/runtime/interpreter/
Dunstarted_runtime.cc1417 const ObjPtr<mirror::Object> referent = in UnstartedReferenceGetReferent() local
1419 result->SetL(referent); in UnstartedReferenceGetReferent()