Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3974be61 authored by Guang Zhu's avatar Guang Zhu
Browse files

further remove calls to runFinalization

apparently these calls may deadlock as well...

Change-Id: I83132aa50f4e49a170be2b960f6c3236f14745c9
parent 11ebdd6a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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();