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

* commit 'c3db7c8f3bc9af38d0f4ad2c66ff696c115c036a':
  further remove calls to runFinalization
This commit is contained in:
Guang Zhu
2011-01-18 18:40:55 -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();