Searched refs:WeakRef (Results 1 - 5 of 5) sorted by relevance

/openjdk9/jdk/src/java.rmi/share/classes/sun/rmi/transport/
H A DWeakRef.java31 * WeakRef objects are used by the RMI runtime to hold potentially weak
38 * that WeakRef objects hash and compare to each other according to the
44 class WeakRef extends WeakReference<Object> { class in inherits:WeakReference
49 /** strong reference to the referent, for when this WeakRef is "pinned" */
53 * Create a new WeakRef to the given object.
55 public WeakRef(Object obj) { method in class:WeakRef
61 * Create a new WeakRef to the given object, registered with a queue.
63 public WeakRef(Object obj, ReferenceQueue<Object> q) { method in class:WeakRef
124 * Return true if "obj" is this identical WeakRef object, or, if the
125 * contained reference has not been cleared, if "obj" is another WeakRef
[all...]
H A DObjectTable.java64 private static final Map<WeakRef,Target> implTable =
104 return implTable.get(new WeakRef(impl));
170 WeakRef weakImpl = target.getWeakImpl();
210 WeakRef weakImpl = target.getWeakImpl();
349 WeakRef weakImpl = (WeakRef) reapQueue.remove();
H A DTarget.java50 private final WeakRef weakImpl;
90 this.weakImpl = new WeakRef(impl, ObjectTable.reapQueue);
166 WeakRef getWeakImpl() {
202 * Pin impl in target. Pin the WeakRef object so it holds a strong
214 * is empty. All of the weak/strong handling is in WeakRef
/openjdk9/jdk/test/java/lang/ref/
H A DEnqueuePollRace.java36 new WeakRef().run();
40 static class WeakRef { class in class:EnqueuePollRace
H A DReferenceEnqueue.java39 new WeakRef().run();
45 static class WeakRef { class in class:ReferenceEnqueue
50 WeakRef() { method in class:ReferenceEnqueue.WeakRef

Completed in 45 milliseconds