Home | History | Annotate | Download | only in mirror

Lines Matching defs:Reference

43 // C++ mirror of java.lang.ref.Reference
44 class MANAGED Reference : public Object {
46 // Size of java.lang.ref.Reference.class.
49 // Size of an instance of java.lang.ref.Reference.
51 return sizeof(Reference);
55 return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_);
58 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_);
61 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_);
64 return OFFSET_OF_OBJECT_MEMBER(Reference, referent_);
79 Reference* GetPendingNext() REQUIRES_SHARED(Locks::mutator_lock_) {
80 return GetFieldObject<Reference, kDefaultVerifyFlags, kReadBarrierOption>(PendingNextOffset());
83 void SetPendingNext(ObjPtr<Reference> pending_next) REQUIRES_SHARED(Locks::mutator_lock_);
85 // Returns true if the reference's pendingNext is null, indicating it is
86 // okay to process this reference.
89 // 1. The reference has already been enqueued to a java ReferenceQueue. In
90 // this case the referent should not be considered for reference processing
92 // 2. The reference is currently part of a list of references that may
93 // shortly be enqueued on a java ReferenceQueue. In this case the reference
94 // should not be processed again until and unless the reference has been
95 // removed from the list after having determined the reference is not ready
114 HeapReference<Reference> pending_next_;
116 HeapReference<Reference> queue_next_;
124 DISALLOW_IMPLICIT_CONSTRUCTORS(Reference);
128 class MANAGED FinalizerReference : public Reference {