Automated import from //branches/donutburger/...@142714,142714

This commit is contained in:
Chris Tate
2009-03-25 16:44:52 -07:00
committed by The Android Open Source Project
parent 3aadcd9ed4
commit ce229059e2

View File

@@ -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");
}