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

Commit 83f7d0d6 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Use Runtime.gc instead of System.gc for DDMS.

System.gc doesn't always do a GC unless to attempt to run the
finalizers after you call System.gc.

Bug: 14325353
Change-Id: Iebed7fad5576d610cea13a86e7d3d46652c67478
parent 3f4867f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ public class DdmHandleHeap extends ChunkHandler {

        if (false)
            Log.d("ddm-heap", "Heap GC request");
        System.gc();
        Runtime.getRuntime().gc();

        return null;        // empty response
    }