HomeSort by relevance Sort by last modified time
    Searched full:referent (Results 1 - 25 of 84) sorted by null

1 2 3 4

  /external/guava/guava/src/com/google/common/base/
FinalizablePhantomReference.java 24 * after the garbage collector reclaims the referent. This is a simpler alternative to using a
37 * @param referent to phantom reference
38 * @param queue that should finalize the referent
40 protected FinalizablePhantomReference(T referent, FinalizableReferenceQueue queue) {
41 super(referent, queue.queue);
FinalizableSoftReference.java 24 * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link
35 * @param referent to softly reference
36 * @param queue that should finalize the referent
38 protected FinalizableSoftReference(T referent, FinalizableReferenceQueue queue) {
39 super(referent, queue.queue);
FinalizableWeakReference.java 24 * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link
35 * @param referent to weakly reference
36 * @param queue that should finalize the referent
38 protected FinalizableWeakReference(T referent, FinalizableReferenceQueue queue) {
39 super(referent, queue.queue);
FinalizableReference.java 28 * Invoked on a background thread after the referent has been garbage collected unless security
  /libcore/libart/src/main/java/java/lang/ref/
Reference.java 102 * If GC is not in progress (ie: not going through slow path), the referent
110 * Used by the reference processor to determine whether or not the referent
111 * can be immediately returned. Because the referent might get swept during
118 * VM requirement: this field <em>must</em> be called "referent"
121 volatile T referent; field in class:Reference
125 * when the referent is appropriately reachable.
156 referent = r;
161 * Makes the referent {@code null}. This does not force the reference
165 referent = null;
197 * Returns the referent of the reference object
    [all...]
  /art/runtime/native/
java_lang_ref_Reference.cc 29 mirror::Object* const referent = member in class:art::mirror
31 return soa.AddLocalReference<jobject>(referent);
  /art/runtime/gc/
reference_processor.cc 52 mirror::Object* const referent = reference->GetReferent(); member in class:art::gc::mirror
53 // If the referent is null then it is already cleared, we can just return null since there is no
55 if (UNLIKELY(!SlowPathEnabled()) || referent == nullptr) {
56 return referent;
62 // If the referent became cleared, return it. Don't need barrier since thread roots can't get
67 // Try to see if the referent is already marked by using the is_marked_callback. We can return
72 // If it's null it means not marked, but it could become marked if the referent is reachable
108 // We are done preserving references, some people who are blocked may see a marked referent.
159 // Clear all finalizer referent reachable soft and weak references with white referents.
183 // Process the "referent" field in a java.lang.ref.Reference. If the referent has not yet bee
191 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); local
    [all...]
reference_processor.h 57 // Decode the referent, may block if references are being processed.
97 // If this is true, then we cannot return a referent (see comment in GetReferent).
99 // Condition that people wait on if they attempt to get the referent of a reference while
reference_queue.h 60 // zombie field, and the referent field is cleared.
66 // References with a black referent are removed from the list. References with white referents
reference_queue.cc 112 // Referent is white, clear it.
134 // If the referent is non-null the reference must queuable.
136 // Move the updated referent to the zombie field.
  /dalvik/hit/src/com/android/hit/
ArrayInstance.java 139 public String describeReferenceTo(long referent) {
142 return super.describeReferenceTo(referent);
166 if (id == referent) {
181 return super.describeReferenceTo(referent);
ClassInstance.java 157 public String describeReferenceTo(long referent) {
185 if (id == referent) {
203 return super.describeReferenceTo(referent);
  /libcore/luni/src/main/java/java/lang/ref/
WeakReference.java 89 * Constructs a new weak reference to the given referent. The newly created
92 * @param r the referent to track
99 * Constructs a new weak reference to the given referent. The newly created
102 * @param r the referent to track
FinalizerReference.java 37 // When the GC wants something finalized, it moves it from the 'referent' field to
53 public static void add(Object referent) {
54 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue);
103 if (r.referent == sentinel) {
105 sentinelReference.referent = null;
SoftReference.java 36 * A reference that is cleared when its referent is not strongly reachable and
81 * Constructs a new soft reference to the given referent. The newly created
84 * @param r the referent to track
91 * Constructs a new soft reference to the given referent. The newly created
94 * @param r the referent to track
PhantomReference.java 39 * on the corresponding queue, but its referent is not cleared. That is, the
56 * @param r the referent to track
64 * Returns {@code null}. The referent of a phantom reference is not
  /external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/
PayloadAlignmentTest.java 110 Instruction31t referent = (Instruction31t)instructions.get(0); local
111 Assert.assertEquals(6, referent.getCodeOffset());
138 Instruction31t referent = (Instruction31t)instructions.get(0); local
139 Assert.assertEquals(8, referent.getCodeOffset());
197 OffsetInstruction referent = (OffsetInstruction)instructions.get(7); local
198 Assert.assertEquals(-14, referent.getCodeOffset());
248 OffsetInstruction referent = (OffsetInstruction)instructions.get(7); local
249 Assert.assertEquals(-18, referent.getCodeOffset());
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
ReferenceTest.java 42 public TestWeakReference(T referent) {
43 super(referent);
46 public TestWeakReference(T referent, ReferenceQueue<? super T> q) {
47 super(referent, q);
97 assertNull("Referent is not null.", pr.get());
103 assertNull("Referent is not null.", pr.get());
279 * Checks to make sure that the referent of the WeakReference
289 public TestObject(String referent) {
290 stringRef = new WeakReference<String>(referent);
295 /* If a VM bug has caused the referent to ge
    [all...]
PhantomReferenceTest.java 25 //TODO: write a test to verify that the referent's finalize() happens
54 public TestPhantomReference(T referent,
56 super(referent, q);
  /art/runtime/mirror/
reference.h 70 void SetReferent(Object* referent) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
71 SetFieldObjectVolatile<kTransactionActive>(ReferentOffset(), referent); local
78 // the java threads for cleared references. Once these cleared references have a null referent,
  /ndk/sources/host-tools/sed-4.2.1/lib/
lstat.c 49 then use stat() to get more info on the referent of FILE.
50 If the referent is a non-directory, then set errno to ENOTDIR
67 Call stat() to get info about the link's referent. */
  /libcore/luni/src/main/java/java/lang/
ProcessManager.java 319 public ProcessReference(ProcessImpl referent, ProcessReferenceQueue referenceQueue) {
320 super(referent, referenceQueue);
321 this.processId = referent.pid;
  /art/test/079-phantom/src/
Bitmap.java 109 * as our referent. We need the copy because you can't get the referred-to
  /external/smack/src/org/jivesoftware/smack/util/collections/
AbstractReferenceMap.java 674 * Constructs a reference of the given type to the given referent.
678 * @param referent the object to refer to
680 * this number might be different from referent.hashCode() if
681 * the referent represents a value and not a key
683 protected <T> Reference<T> toReference(int type, T referent, int hash) {
686 return new SoftRef<T>(hash, referent, parent.queue);
688 return new WeakRef<T>(hash, referent, parent.queue);
    [all...]
  /art/patchoat/
patchoat.cc 357 mirror::Object* referent = obj->GetFieldObject<mirror::Object, kVerifyNone>(off); local
358 DCHECK(patcher_->InHeap(referent)) << "Referent is not in the heap.";
359 mirror::Object* moved_object = patcher_->RelocatedAddressOf(referent);
365 mirror::Object* referent = ref->GetReferent(); local
366 DCHECK(patcher_->InHeap(referent)) << "Referent is not in the heap.";
367 mirror::Object* moved_object = patcher_->RelocatedAddressOf(referent);
    [all...]

Completed in 668 milliseconds

1 2 3 4