OSDN Git Service

further remove calls to runFinalization
authorGuang Zhu <guangzhu@google.com>
Wed, 19 Jan 2011 02:04:34 +0000 (18:04 -0800)
committerGuang Zhu <guangzhu@google.com>
Wed, 19 Jan 2011 02:04:34 +0000 (18:04 -0800)
apparently these calls may deadlock as well...

Change-Id: I83132aa50f4e49a170be2b960f6c3236f14745c9

tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java

index e5a46b9..5bcf727 100644 (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();