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

Commit 0ec0ceb9 authored by Hans Boehm's avatar Hans Boehm Committed by Automerger Merge Worker
Browse files

Merge "Make LoadClass collect garbage as promised" am: e16473b1 am: 87376c8b am: 3d794a3a

parents a824443a 3d794a3a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -14,8 +14,8 @@
 * limitations under the License.
 */

import android.util.Log;
import android.os.Debug;
import android.util.Log;

/**
 * Loads a class, runs the garbage collector, and prints showmap output.
@@ -46,7 +46,7 @@ class LoadClass {
            }
        }

        System.gc();
        Runtime.getRuntime().gc();

        int allocCount = Debug.getGlobalAllocCount();
        int allocSize = Debug.getGlobalAllocSize();