Index: third_party/sqlite/sqlite.gyp |
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp |
index a2f6aaa197eaeb1d3ee7d9cfd399ee41159cdaea..bb9fd253c439e27f6ddfb738e80dcb0100e09493 100644 |
--- a/third_party/sqlite/sqlite.gyp |
+++ b/third_party/sqlite/sqlite.gyp |
@@ -38,6 +38,10 @@ |
# stompers from directly corrupting the database. |
# TODO(shess): Upstream the ability to use this define. |
'SQLITE_MMAP_READ_ONLY=1', |
+ # By default SQLite pre-allocates 100 pages of pcache data, which will not |
+ # be released until the handle is closed. This is contrary to Chromium's |
+ # memory-usage goals. |
+ 'SQLITE_DEFAULT_PCACHE_INITSZ=0', |
# NOTE(shess): Some defines can affect the amalgamation. Those should be |
# added to google_generate_amalgamation.sh, and the amalgamation |
# re-generated. Usually this involves disabling features which include |