Searched refs:referent (Results 1 - 14 of 14) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/ref/
H A DWeakReference.java54 * @param referent object the new weak reference will refer to
56 public WeakReference(T referent) { argument
57 super(referent);
64 * @param referent object the new weak reference will refer to
68 public WeakReference(T referent, ReferenceQueue<? super T> q) { argument
69 super(referent, q);
H A DReference.java43 * If GC is not in progress (ie: not going through slow path), the referent
51 * Used by the reference processor to determine whether or not the referent
52 * can be immediately returned. Because the referent might get swept during
57 volatile T referent; /* Treated specially by GC */ field in class:Reference
88 * Returns this reference object's referent. If this reference object has
109 this.referent = null;
150 Reference(T referent) { argument
151 this(referent, null);
154 Reference(T referent, ReferenceQueue<? super T> queue) { argument
155 this.referent
[all...]
H A DPhantomReference.java36 * referent of a phantom reference is <a
40 * <p> In order to ensure that a reclaimable object remains so, the referent of
56 * Returns this reference object's referent. Because the referent of a
75 * @param referent the object the new phantom reference will refer to
79 public PhantomReference(T referent, ReferenceQueue<? super T> q) { argument
80 super(referent, q);
H A DSoftReference.java86 * @param referent object the new soft reference will refer to
88 public SoftReference(T referent) { argument
89 super(referent);
97 * @param referent object the new soft reference will refer to
102 public SoftReference(T referent, ReferenceQueue<? super T> q) { argument
103 super(referent, q);
108 * Returns this reference object's referent. If this reference object has
/libcore/luni/src/main/java/libcore/util/
H A DNativeAllocationRegistry.java91 * argument when <code>referent</code> becomes unreachable. If you
93 * <code>referent</code>, you must not access these after
94 * <code>referent</code> becomes unreachable, because they may be dangling
98 * <code>referent</code> becomes unreachable. The runnable will have no
102 * @param referent java object to associate the native allocation with
105 * @throws IllegalArgumentException if either referent or nativePtr is null.
113 public Runnable registerNativeAllocation(Object referent, long nativePtr) { argument
114 if (referent == null) {
115 throw new IllegalArgumentException("referent is null");
128 Cleaner cleaner = Cleaner.create(referent, ne
161 registerNativeAllocation(Object referent, Allocator allocator) argument
[all...]
/libcore/luni/src/test/java/libcore/util/
H A DNativeAllocationRegistryTest.java125 Object referent = new Object();
126 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr);
138 // There shouldn't be any problems when the referent object is GC'd.
139 referent = null;
147 final Object referent = new Object();
149 // referent should not be null
159 registry.registerNativeAllocation(referent, 0);
163 // referent should not be null
178 assertNull(registry.registerNativeAllocation(referent,
/libcore/luni/src/main/java/java/lang/ref/
H A DFinalizerReference.java37 // When the GC wants something finalized, it moves it from the 'referent' field to
53 public static void add(Object referent) { argument
54 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue);
103 if (r.referent == sentinel) {
105 sentinelReference.referent = null;
/libcore/ojluni/src/main/java/sun/misc/
H A DCleaner.java44 * <p> A cleaner tracks a referent object and encapsulates a thunk of arbitrary
45 * cleanup code. Some time after the GC detects that a cleaner's referent has
114 private Cleaner(Object referent, Runnable thunk) { argument
115 super(referent, dummyQueue);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
H A DPhantomReferenceTest.java25 //TODO: write a test to verify that the referent's finalize() happens
54 public TestPhantomReference(T referent,
56 super(referent, q);
H A DReferenceTest.java43 public TestWeakReference(T referent, ReferenceQueue<? super T> q) { argument
44 super(referent, q);
257 * Checks to make sure that the referent of the WeakReference
267 public TestObject(String referent) {
268 stringRef = new WeakReference<String>(referent);
273 /* If a VM bug has caused the referent to get
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileLockTable.java91 FileLockReference(FileLock referent, argument
94 super(referent, queue);
/libcore/ojluni/src/main/java/java/lang/
H A DThread.java1968 * saved value of the referent's identity hash code, to maintain
1969 * a consistent hash code after the referent has been cleared
1983 * Returns the identity hash code of the original referent.
1992 * WeakClassKey instance, or, if this object's referent has not
1994 * instance with the identical non-null referent as this one.
2002 Object referent = get();
2003 return (referent != null) &&
2004 (referent == ((WeakClassKey) obj).get());
/libcore/ojluni/src/main/java/java/util/
H A DResourceBundle.java674 LoaderReference(ClassLoader referent, ReferenceQueue q, CacheKey key) { argument
675 super(referent, q);
692 BundleReference(ResourceBundle referent, ReferenceQueue q, CacheKey key) { argument
693 super(referent, q);
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamClass.java2204 Class<?> referent;
2206 : ((referent = get()) != null) &&
2207 (referent == other.get())) &&
2317 * saved value of the referent's identity hash code, to maintain
2318 * a consistent hash code after the referent has been cleared
2332 * Returns the identity hash code of the original referent.
2340 * WeakClassKey instance, or, if this object's referent has not
2342 * instance with the identical non-null referent as this one.
2350 Object referent = get();
2351 return (referent !
[all...]

Completed in 306 milliseconds