* commit 'e97cc1a2866cc1e3b63412e9550b8f31d5f5ac21': further remove calls to runFinalization
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user