Home
last modified time | relevance | path

Searched refs:referent (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/ref/
DReference.java70 volatile T referent; field in Reference
208 Reference(T referent) { in Reference() argument
209 this(referent, null); in Reference()
212 Reference(T referent, ReferenceQueue<? super T> queue) { in Reference() argument
213 this.referent = referent; in Reference()
DWeakReference.java56 public WeakReference(T referent) { in WeakReference() argument
57 super(referent); in WeakReference()
68 public WeakReference(T referent, ReferenceQueue<? super T> q) { in WeakReference() argument
69 super(referent, q); in WeakReference()
DSoftReference.java88 public SoftReference(T referent) { in SoftReference() argument
89 super(referent); in SoftReference()
102 public SoftReference(T referent, ReferenceQueue<? super T> q) { in SoftReference() argument
103 super(referent, q); in SoftReference()
DPhantomReference.java79 public PhantomReference(T referent, ReferenceQueue<? super T> q) { in PhantomReference() argument
80 super(referent, q); in PhantomReference()
/libcore/ojluni/annotations/hiddenapi/java/lang/ref/
DReference.java34 Reference(T referent) { in Reference() argument
38 Reference(T referent, java.lang.ref.ReferenceQueue<? super T> queue) { in Reference() argument
80 volatile T referent; field in Reference
/libcore/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java166 Object referent = new Object(); in testEarlyFree() local
167 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); in testEarlyFree()
180 referent = null; in testEarlyFree()
204 final Object referent = new Object(); in testNullArguments() local
216 registry.registerNativeAllocation(referent, 0); in testNullArguments()
/libcore/luni/src/main/java/libcore/util/
DNativeAllocationRegistry.java256 public @NonNull Runnable registerNativeAllocation(@NonNull Object referent, long nativePtr) { in registerNativeAllocation() argument
257 if (referent == null) { in registerNativeAllocation()
268 Cleaner cleaner = Cleaner.create(referent, thunk); in registerNativeAllocation()
278 Reference.reachabilityFence(referent); in registerNativeAllocation()
/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java113 private Cleaner(Object referent, Runnable thunk) { in Cleaner() argument
114 super(referent, dummyQueue); in Cleaner()
/libcore/luni/src/main/java/java/lang/ref/
DFinalizerReference.java60 public static void add(Object referent) { in add() argument
61 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue); in add()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java71 public TestPhantomReference(T referent, in check_gcInteraction() argument
73 super(referent, q); in check_gcInteraction()
DReferenceTest.java43 public TestWeakReference(T referent, ReferenceQueue<? super T> q) { in TestWeakReference() argument
44 super(referent, q); in TestWeakReference()
324 public TestObject(String referent) { in test_finalizeReferenceInteraction() argument
325 stringRef = new WeakReference<String>(referent); in test_finalizeReferenceInteraction()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DCleaner.java33 private Cleaner(java.lang.Object referent, java.lang.Runnable thunk) { in Cleaner() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockTable.java91 FileLockReference(FileLock referent, in FileLockReference() argument
94 super(referent, queue); in FileLockReference()
/libcore/ojluni/annotations/mmodule/sun/misc/
DCleaner.annotated.java38 Cleaner(java.lang.Object referent, java.lang.Runnable thunk) { super(null, null); throw new Runtime… in Cleaner() argument
/libcore/ojluni/src/main/java/java/lang/
DThread.java2293 Object referent = get(); in equals() local
2294 return (referent != null) && in equals()
2295 (referent == ((WeakClassKey) obj).get()); in equals()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java722 LoaderReference(ClassLoader referent, ReferenceQueue<Object> q, CacheKey key) { in LoaderReference() argument
723 super(referent, q); in LoaderReference()
740 BundleReference(ResourceBundle referent, ReferenceQueue<Object> q, CacheKey key) { in BundleReference() argument
741 super(referent, q); in BundleReference()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java2331 Class<?> referent; in equals() local
2333 : ((referent = get()) != null) && in equals()
2334 (referent == other.get())) && in equals()
2490 Object referent = get(); in equals() local
2491 return (referent != null) && in equals()
2492 (referent == ((WeakClassKey) obj).get()); in equals()