Home
last modified time | relevance | path

Searched refs:Reference (Results 1 – 25 of 65) sorted by relevance

123

/art/runtime/mirror/
Dreference.h42 class MANAGED Reference : public Object {
51 return sizeof(Reference); in InstanceSize()
55 return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); in PendingNextOffset()
58 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); in QueueOffset()
61 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); in QueueNextOffset()
64 return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); in ReferentOffset()
79 Reference* GetPendingNext() REQUIRES_SHARED(Locks::mutator_lock_) { in GetPendingNext()
80 return GetFieldObject<Reference, kDefaultVerifyFlags, kReadBarrierOption>(PendingNextOffset()); in GetPendingNext()
83 void SetPendingNext(ObjPtr<Reference> pending_next) REQUIRES_SHARED(Locks::mutator_lock_);
108 HeapReference<Reference> pending_next_;
[all …]
Dreference-inl.h28 inline uint32_t Reference::ClassSize(PointerSize pointer_size) { in ClassSize()
34 inline void Reference::SetReferent(ObjPtr<Object> referent) { in SetReferent()
38 inline void Reference::SetPendingNext(ObjPtr<Reference> pending_next) { in SetPendingNext()
/art/runtime/native/
Djava_lang_ref_Reference.cc33 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_getReferent()
45 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_refersTo0()
46 const ObjPtr<mirror::Object> other = soa.Decode<mirror::Reference>(o); in Reference_refersTo0()
72 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_clearReferent()
77 FAST_NATIVE_METHOD(Reference, getReferent, "()Ljava/lang/Object;"),
78 FAST_NATIVE_METHOD(Reference, clearReferent, "()V"),
79 FAST_NATIVE_METHOD(Reference, refersTo0, "(Ljava/lang/Object;)Z"),
Djava_lang_ref_FinalizerReference.cc39 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in FinalizerReference_getReferent()
/art/tools/ahat/src/test-dump/
DDumpedStuff.java60 aLongStrongPathToSamplePathObject = new Reference(new Reference(new Reference(object))); in DumpedStuff()
61 aShortWeakPathToSamplePathObject = new WeakReference(new Reference(object)); in DumpedStuff()
119 public static class Reference { class in DumpedStuff
122 public Reference(Object referent) { in Reference() method in DumpedStuff.Reference
174 public Reference aReference = new Reference(anObject);
180 public Reference reachabilityReferenceChain;
187 public Reference aLongStrongPathToSamplePathObject;
190 public SoftReference aSoftChain = new SoftReference(new Reference(new Reference(new Object())));
217 reachabilityReferenceChain = new Reference( in shouldNotGc()
219 new Reference( in shouldNotGc()
/art/runtime/gc/
Dreference_queue.cc34 void ReferenceQueue::AtomicEnqueueIfNotEnqueued(Thread* self, ObjPtr<mirror::Reference> ref) { in AtomicEnqueueIfNotEnqueued()
42 void ReferenceQueue::EnqueueReference(ObjPtr<mirror::Reference> ref) { in EnqueueReference()
51 ObjPtr<mirror::Reference> head = list_->GetPendingNext<kWithoutReadBarrier>(); in EnqueueReference()
59 ObjPtr<mirror::Reference> ReferenceQueue::DequeuePendingReference() { in DequeuePendingReference()
61 ObjPtr<mirror::Reference> ref = list_->GetPendingNext<kWithoutReadBarrier>(); in DequeuePendingReference()
68 ObjPtr<mirror::Reference> next = ref->GetPendingNext<kWithoutReadBarrier>(); in DequeuePendingReference()
76 void ReferenceQueue::DisableReadBarrierForReference(ObjPtr<mirror::Reference> ref) { in DisableReadBarrierForReference()
105 ObjPtr<mirror::Reference> cur = list_; in Dump()
111 ObjPtr<mirror::Reference> pending_next = cur->GetPendingNext(); in Dump()
123 ObjPtr<mirror::Reference> cur = list_; in GetLength()
[all …]
Dreference_queue.h38 class Reference; variable
63 void AtomicEnqueueIfNotEnqueued(Thread* self, ObjPtr<mirror::Reference> ref)
68 void EnqueueReference(ObjPtr<mirror::Reference> ref) REQUIRES_SHARED(Locks::mutator_lock_);
72 ObjPtr<mirror::Reference> DequeuePendingReference() REQUIRES_SHARED(Locks::mutator_lock_);
77 void DisableReadBarrierForReference(ObjPtr<mirror::Reference> ref)
107 mirror::Reference* GetList() REQUIRES_SHARED(Locks::mutator_lock_) { in GetList()
121 mirror::Reference* list_;
Dreference_processor.h34 class Reference; variable
62 ObjPtr<mirror::Object> GetReferent(Thread* self, ObjPtr<mirror::Reference> reference)
68 ObjPtr<mirror::Reference> ref,
78 void ClearReferent(ObjPtr<mirror::Reference> ref)
Dreference_processor.cc55 DCHECK(reference_class == GetClassRoot<mirror::Reference>()); in GetSlowPathFlagOffset()
63 ObjPtr<mirror::Class> reference_class = GetClassRoot<mirror::Reference>(); in SetSlowPathFlag()
79 ObjPtr<mirror::Class> reference_class = GetClassRoot<mirror::Reference>(); in SlowPathEnabled()
90 ObjPtr<mirror::Reference> reference) { in GetReferent()
235 ObjPtr<mirror::Reference> ref, in DelayReferenceReferent()
321 void ReferenceProcessor::ClearReferent(ObjPtr<mirror::Reference> ref) { in ClearReferent()
Dreference_queue_test.cc54 std::set<mirror::Reference*> refs = {ref1.Get(), ref2.Get()}; in TEST_F()
55 std::set<mirror::Reference*> dequeued; in TEST_F()
/art/test/072-reachability-fence/src/
DMain.java17 import java.lang.ref.Reference;
50 Reference.reachabilityFence(str0); in main()
51 Reference.reachabilityFence(str1); in main()
52 Reference.reachabilityFence(str2); in main()
53 Reference.reachabilityFence(str3); in main()
54 Reference.reachabilityFence(str4); in main()
/art/test/072-reachability-fence/
Dexpected-stdout.txt2 Reference 0 was live.
3 Reference 3 was live.
4 Reference 4 was live.
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DSuperRoot.java46 Iterable<Reference> getReferences() { in getReferences()
47 return new AbstractList<Reference>() { in getReferences()
54 public Reference get(int index) { in getReferences()
56 return new Reference(SuperRoot.this, field, mRoots.get(index), Reachability.STRONG); in getReferences()
DAhatClassObj.java122 Iterable<Reference> getReferences() { in getReferences()
123 List<Reference> refs = new AbstractList<Reference>() { in getReferences()
130 public Reference get(int index) { in getReferences()
134 return new Reference(AhatClassObj.this, in getReferences()
DDominatorReferenceIterator.java29 private Iterator<Reference> mIter;
32 public DominatorReferenceIterator(Reachability retained, Iterable<Reference> iter) { in DominatorReferenceIterator()
41 Reference ref = mIter.next(); in hasNext()
DReference.java25 class Reference { class
31 public Reference(AhatInstance src, String field, AhatInstance ref, Reachability reachability) { in Reference() method in Reference
DAhatClassInstance.java106 Iterable<Reference> getReferences() { in getReferences()
424 private class ReferenceIterator implements Iterable<Reference>,
425 Iterator<Reference> {
427 private Reference mNext = null;
444 mNext = new Reference(AhatClassInstance.this, "." + field.name, ref, reachability); in hasNext()
451 public Reference next() { in next()
455 Reference next = mNext; in next()
461 public Iterator<Reference> iterator() { in iterator()
DAhatPlaceHolderInstance.java72 Iterable<Reference> getReferences() { in getReferences()
73 List<Reference> refs = Collections.emptyList(); in getReferences()
DAhatInstance.java222 abstract Iterable<Reference> getReferences(); in getReferences()
720 EnumMap<Reachability, Queue<Reference>> queues = new EnumMap<>(Reachability.class); in computeReachability()
722 queues.put(reachability, new ArrayDeque<Reference>()); in computeReachability()
725 for (Reference ref : root.getReferences()) { in computeReachability()
730 Queue<Reference> queue = queues.get(reachability); in computeReachability()
732 Reference ref = queue.poll(); in computeReachability()
741 for (Reference childRef : ref.ref.getReferences()) { in computeReachability()
DAhatArrayInstance.java227 Iterable<Reference> getReferences() { in getReferences()
229 List<Reference> refs = Collections.emptyList(); in getReferences()
233 refs = new AbstractList<Reference>() { in getReferences()
240 public Reference get(int index) { in getReferences()
245 return new Reference(AhatArrayInstance.this, in getReferences()
/art/test/1339-dead-reference-safe/src/
DReachabilityFenceTest.java20 import java.lang.ref.Reference;
44 Reference.reachabilityFence(x); in $noinline$loop()
/art/test/153-reference-stress/
Dinfo.txt1 Tests java.lang.ref.Reference.get() and GC running in parallel.
/art/test/912-classes/src-art/art/
DTest912Art.java19 import java.lang.ref.Reference;
/art/test/036-finalizer/src/
DMain.java17 import java.lang.ref.Reference;
84 Reference.reachabilityFence(keepLive); in main()
/art/test/954-invoke-polymorphic-verifier/
Dexpected-stdout.txt6 … void BadThis.<init>(): 'this' argument 'Precise Reference: java.lang.String' not instance of 'Ref…
10 …nresolved.<init>(): invoke-polymorphic receiver has no class: Unresolved Reference: other.thing.Foo

123