Home | History | Annotate | Download | only in mirror

Lines Matching refs:Reference

42 // C++ mirror of java.lang.ref.Reference
43 class MANAGED Reference : public Object {
45 // Size of java.lang.ref.Reference.class.
48 // Size of an instance of java.lang.ref.Reference.
50 return sizeof(Reference);
54 return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_);
57 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_);
60 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_);
63 return OFFSET_OF_OBJECT_MEMBER(Reference, referent_);
79 Reference* GetPendingNext() SHARED_REQUIRES(Locks::mutator_lock_) {
80 return GetFieldObject<Reference>(PendingNextOffset());
83 void SetPendingNext(Reference* pending_next)
92 // Returns true if the reference's pendingNext is null, indicating it is
93 // okay to process this reference.
96 // 1. The reference has already been enqueued to a java ReferenceQueue. In
97 // this case the referent should not be considered for reference processing
99 // 2. The reference is currently part of a list of references that may
100 // shortly be enqueued on a java ReferenceQueue. In this case the reference
101 // should not be processed again until and unless the reference has been
102 // removed from the list after having determined the reference is not ready
124 HeapReference<Reference> pending_next_;
126 HeapReference<Reference> queue_next_;
134 DISALLOW_IMPLICIT_CONSTRUCTORS(Reference);
138 class MANAGED FinalizerReference : public Reference {