- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for awaitFullGc (0.09 seconds)
-
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(); // Attempt to help with some flakiness that we've seen: b/387521512. GcFinalization.awaitFullGc(); assertEquals(0, finalizerRan.getCount()); assertThat(ref.get()).isNull(); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 17:02:07 GMT 2025 - 7.9K bytes - Click Count (0) -
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(); // Attempt to help with some flakiness that we've seen: b/387521512. GcFinalization.awaitFullGc(); assertEquals(0, finalizerRan.getCount()); assertThat(ref.get()).isNull(); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 17:02:07 GMT 2025 - 7.9K bytes - Click Count (0) -
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() { @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 11.5K bytes - Click Count (0) -
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() { @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 11.5K bytes - Click Count (0)