Example usage for Java com.google.common.testing GcFinalization fields, constructors, methods, implement or subclass
The text is from its open source code.
void | awaitClear(final WeakReference> ref) Waits until the given weak reference is cleared, invoking the garbage collector as necessary to try to ensure that this will happen. |
void | awaitFullGc() Tries to perform a "full" garbage collection cycle (including processing of weak references and invocation of finalize methods) and waits for it to complete. |