- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for awaitFullGc (0.16 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K 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 Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K 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 */ public static void awaitFullGc() { CountDownLatch finalizerRan = new CountDownLatch(1); WeakReference<Object> ref = createWeakReferenceWithFinalizer(finalizerRan); await(finalizerRan); awaitClear(ref);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 20:19:19 GMT 2026 - 12.3K 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 */ public static void awaitFullGc() { CountDownLatch finalizerRan = new CountDownLatch(1); WeakReference<Object> ref = createWeakReferenceWithFinalizer(finalizerRan); await(finalizerRan); awaitClear(ref);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 20:19:19 GMT 2026 - 12.3K bytes - Click Count (0)