Home | History | Annotate | Download | only in mirror

Lines Matching refs:Reference

44 // C++ mirror of java.lang.ref.Reference
45 class MANAGED Reference : public Object {
47 // Size of java.lang.ref.Reference.class.
50 // Size of an instance of java.lang.ref.Reference.
52 return sizeof(Reference);
56 return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_);
59 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_);
62 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_);
65 return OFFSET_OF_OBJECT_MEMBER(Reference, referent_);
80 Reference* GetPendingNext() REQUIRES_SHARED(Locks::mutator_lock_) {
81 return GetFieldObject<Reference, kDefaultVerifyFlags, kReadBarrierOption>(PendingNextOffset());
84 void SetPendingNext(ObjPtr<Reference> pending_next) REQUIRES_SHARED(Locks::mutator_lock_);
86 // Returns true if the reference's pendingNext is null, indicating it is
87 // okay to process this reference.
90 // 1. The reference has already been enqueued to a java ReferenceQueue. In
91 // this case the referent should not be considered for reference processing
93 // 2. The reference is currently part of a list of references that may
94 // shortly be enqueued on a java ReferenceQueue. In this case the reference
95 // should not be processed again until and unless the reference has been
96 // removed from the list after having determined the reference is not ready
118 HeapReference<Reference> pending_next_;
120 HeapReference<Reference> queue_next_;
128 DISALLOW_IMPLICIT_CONSTRUCTORS(Reference);
132 class MANAGED FinalizerReference : public Reference {