Merge "further remove calls to runFinalization" into honeycomb

This commit is contained in:
Guang Zhu
2011-01-18 18:05:50 -08:00
committed by Android (Google) Code Review

View File

@@ -89,13 +89,12 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel
}
private void freeMem() {
Log.v(LOGTAG, "freeMem: calling gc/finalization...");
Log.v(LOGTAG, "freeMem: calling gc...");
final VMRuntime runtime = VMRuntime.getRuntime();
runtime.gcSoftReferences();
runtime.gcSoftReferences();
runtime.gcSoftReferences();
Runtime.getRuntime().runFinalization();
Runtime.getRuntime().gc();
Runtime.getRuntime().gc();