Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for GcFinalization (0.2 sec)

  1. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

        assertTrue(file.exists());
        out.close();
    
        // Make sure that finalize deletes the file
        out = null;
    
        // times out and throws RuntimeException on failure
        GcFinalization.awaitDone(
            new GcFinalization.FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return !file.exists();
              }
            });
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 08 21:20:23 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.awaitDone(future);
        assertTrue(future.isDone());
        assertTrue(future.isCancelled());
      }
    
      public void testAwaitClear() {
        final WeakReference<Object> ref = new WeakReference<>(new Object());
        GcFinalization.awaitClear(ref);
        assertNull(ref.get());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.awaitDone(future);
        assertTrue(future.isDone());
        assertTrue(future.isCancelled());
      }
    
      public void testAwaitClear() {
        final WeakReference<Object> ref = new WeakReference<>(new Object());
        GcFinalization.awaitClear(ref);
        assertNull(ref.get());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        frq = null;
      }
    
    
      public void testFinalizeReferentCalled() {
        final MockReference reference = new MockReference(frq = new FinalizableReferenceQueue());
    
        GcFinalization.awaitDone(
            new GcFinalization.FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return reference.finalizeReferentCalled;
              }
            });
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

        assertTrue(file.exists());
        out.close();
    
        // Make sure that finalize deletes the file
        out = null;
    
        // times out and throws RuntimeException on failure
        GcFinalization.awaitDone(
            new GcFinalization.FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return !file.exists();
              }
            });
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 08 21:20:23 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/InternersTest.java

    import com.google.common.base.Function;
    import com.google.common.collect.Interners.InternerImpl;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Interners}.
     *
     * @author Kevin Bourrillion
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.Sets;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.Sets;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/InternersTest.java

    import com.google.common.base.Function;
    import com.google.common.collect.Interners.InternerImpl;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Interners}.
     *
     * @author Kevin Bourrillion
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.TestExceptions.SomeCheckedException;
    import com.google.common.base.TestExceptions.SomeUncheckedException;
    import com.google.common.testing.GcFinalization;
    import java.lang.ref.WeakReference;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@code AbstractIterator}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top