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

Commit a7f7dee1 authored by Chris Tate's avatar Chris Tate Committed by The Android Open Source Project
Browse files

Automated import from //branches/master/...@142751,142751

parent 07040097
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3487,9 +3487,11 @@ public final class ActivityThread {
            callbacks.get(i).onLowMemory();
        }

        // Ask SQLite to free up as much memory as it can, mostly from it's page caches
        // Ask SQLite to free up as much memory as it can, mostly from its page caches.
        if (Process.myUid() != Process.SYSTEM_UID) {
            int sqliteReleased = SQLiteDatabase.releaseMemory();
            EventLog.writeEvent(SQLITE_MEM_RELEASED_EVENT_LOG_TAG, sqliteReleased);
        }

        BinderInternal.forceGc("mem");
    }