Automated import from //branches/donutburger/...@142714,142714
This commit is contained in:
committed by
The Android Open Source Project
parent
3aadcd9ed4
commit
ce229059e2
@@ -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
|
||||
int sqliteReleased = SQLiteDatabase.releaseMemory();
|
||||
EventLog.writeEvent(SQLITE_MEM_RELEASED_EVENT_LOG_TAG, sqliteReleased);
|
||||
// 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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user