Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for awaitFullGc (0.1 sec)

  1. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

                });
    
        // Don't copy this into your own test!
        // Use e.g. awaitClear or await(CountDownLatch) instead.
        GcFinalization.awaitFullGc();
    
        // If this test turns out to be flaky, add a second call to awaitFullGc()
        // GcFinalization.awaitFullGc();
    
        assertEquals(0, finalizerRan.getCount());
        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)
  2. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

                });
    
        // Don't copy this into your own test!
        // Use e.g. awaitClear or await(CountDownLatch) instead.
        GcFinalization.awaitFullGc();
    
        // If this test turns out to be flaky, add a second call to awaitFullGc()
        // GcFinalization.awaitFullGc();
    
        assertEquals(0, finalizerRan.getCount());
        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/src/com/google/common/testing/GcFinalization.java

       * references to be processed.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       * @since 12.0
       */
      @SuppressWarnings({"removal", "Finalize"}) // b/260137033
      public static void awaitFullGc() {
        CountDownLatch finalizerRan = new CountDownLatch(1);
        WeakReference<Object> ref =
            new WeakReference<>(
                new Object() {
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/GcFinalization.java

       * references to be processed.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       * @since 12.0
       */
      @SuppressWarnings({"removal", "Finalize"}) // b/260137033
      public static void awaitFullGc() {
        CountDownLatch finalizerRan = new CountDownLatch(1);
        WeakReference<Object> ref =
            new WeakReference<>(
                new Object() {
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top