Lines Matching refs:ref
17 import java.lang.ref.PhantomReference;
18 import java.lang.ref.Reference;
19 import java.lang.ref.ReferenceQueue;
20 import java.lang.ref.WeakReference;
103 MyPhantomReference ref = phantomRefs.get(n); in inPhantomRefs() local
104 if (ref == null) { in inPhantomRefs()
107 if (ref.n != n) { in inPhantomRefs()
162 Reference<FinalizableObject> ref = (Reference<FinalizableObject>) refQueue.poll(); in emptyAndCheckQueues() local
163 if (ref == null) { in emptyAndCheckQueues()
166 if (ref instanceof MyWeakReference) { in emptyAndCheckQueues()
167 MyWeakReference wr = (MyWeakReference) ref; in emptyAndCheckQueues()
172 if (weakRefs.remove(Integer.valueOf(wr.n)) != ref) { in emptyAndCheckQueues()
175 } else if (ref instanceof MyPhantomReference) { in emptyAndCheckQueues()
176 MyPhantomReference pr = (MyPhantomReference) ref; in emptyAndCheckQueues()
178 if (phantomRefs.remove(Integer.valueOf(pr.n)) != ref) { in emptyAndCheckQueues()