diff options
author | Chris Tate <> | 2009-03-25 16:44:52 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-25 16:44:52 -0700 |
commit | ce229059e25066b36c99208a04e8e5696a76abf3 (patch) | |
tree | 9ef2bc964c73970d1cfe90ddd21baf6789253c72 | |
parent | 3aadcd9ed4f509b6f6562059ff175184f148cb71 (diff) | |
download | frameworks_base-ce229059e25066b36c99208a04e8e5696a76abf3.zip frameworks_base-ce229059e25066b36c99208a04e8e5696a76abf3.tar.gz frameworks_base-ce229059e25066b36c99208a04e8e5696a76abf3.tar.bz2 |
Automated import from //branches/donutburger/...@142714,142714
-rw-r--r-- | core/java/android/app/ActivityThread.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index acf41ee..d816193 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -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"); } |