Home | History | Annotate | Download | only in testing

Lines Matching refs:System

34  * following actions taken by the java garbage collection system:
42 * <p>This class uses (possibly repeated) invocations of {@link java.lang.System#gc()} to cause
43 * finalization to happen. However, a call to {@code System.gc()} is specified to be no more
96 // we try hard to make them robust in practice. We could additionally try to add in a system
120 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
122 System.runFinalization();
126 System.gc();
139 } while (System.nanoTime() - deadline < 0);
155 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
157 System.runFinalization();
161 System.gc();
169 } while (System.nanoTime() - deadline < 0);
185 * response to {@link System#gc()}:
208 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
210 System.runFinalization();
220 } while (System.nanoTime() - deadline < 0);