Automated import from //branches/donutburger/...@142714,142714
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 @@
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");
}