am e97cc1a2: am c3db7c8f: Merge "further remove calls to runFinalization" into honeycomb

* commit 'e97cc1a2866cc1e3b63412e9550b8f31d5f5ac21':
  further remove calls to runFinalization
This commit is contained in:
Guang Zhu
2011-01-18 22:00:51 -08:00
committed by Android Git Automerger

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();