Home
last modified time | relevance | path

Searched refs:finalized (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java27 AtomicBoolean finalized = new AtomicBoolean(); in testFinalizeIsCalled() local
28 createFinalizableObject(finalized); in testFinalizeIsCalled()
31 if (!finalized.get()) { in testFinalizeIsCalled()
52 private X createFinalizableObject(final AtomicBoolean finalized) { in createFinalizableObject() argument
56 finalized.set(true); in createFinalizableObject()
61 boolean wasFinalized = finalized.get(); in createFinalizableObject()
92 assertTrue("object whose constructor threw was not finalized", ConstructionFails.finalized); in testBackFromTheDead()
96 private static boolean finalized; field in FinalizeTest.ConstructionFails
103 finalized = true; in finalize()
/libcore/luni/src/main/java/java/lang/ref/
DFinalizerReference.java151 boolean finalized = false; field in FinalizerReference.Sentinel
154 if (finalized) { in finalize()
157 finalized = true; in finalize()
164 while (!finalized) { in awaitFinalization()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DSoftReferenceTest.java84 public boolean finalized; in test_get_SoftReference() field in SoftReferenceTest.TestObject
86 finalized = false; in test_get_SoftReference()
90 finalized = true; in test_get_SoftReference()