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

Commit 2e661a7c authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 7671

* changes:
  Free memory on low memory condition.
parents dbee0313 0aeed6af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -228,8 +228,8 @@ public class TestShellActivity extends Activity implements LayoutTestController
    @Override
    public void onLowMemory() {
        super.onLowMemory();
        Log.e(LOGTAG, "Low memory, kill self");
        System.exit(1);
        Log.e(LOGTAG, "Low memory, clearing caches");
        mWebView.freeMemory();
    }

    // Dump the page