Home | History | Annotate | Download | only in ref

Lines Matching refs:wr

27 	volatile WeakReference wr;
40 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue());
42 && (wr.get() != null));
44 wr.clear();
46 && (wr.get() == null));
48 assertTrue("should always pass", tmpA != sr.get() && tmpB != wr.get());
103 wr = new WeakReference(testObj, rq);
116 assertTrue("Unexpected ref1", ref == wr);
118 assertNull("Object could not be reclaimed1.", wr.get());
126 assertTrue("Unexpected ref2", ref == wr);
129 // Reference wr so it does not get collected
130 assertNull("Object could not be reclaimed.", wr.get());