sqlite: Remove unused build flag SQLITE_MMAP_READ_ONLY.
The string "SQLITE_MMAP_READ_ONLY" only shows up the BUILD.gn file [1], so this macro does not impact the SQLite build at all. The comment above it suggests that the macro is intended to set up SQLite so it uses read-only mmap regions, to avoid having memory stompers corrupt databases. However, the SQLite documentation [2] indicates that the read-only mmap behavior is the default and only option available. In conclusion, this flag is misleading, and removing it will not result in any behavior change. [1] https://cs.chromium.org/search/?q=SQLITE_MMAP_READ_ONLY&ssfr=1&type=cs [2] https://www.sqlite.org/mmap.html Change-Id: I5fc3ae62f399fcfc6fbdd868258fef48cdc7fa61 Reviewed-on: https://chromium-review.googlesource.com/c/1343194Reviewed-by:Joshua Bell <jsbell@chromium.org> Commit-Queue: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#609747}
Showing
Please register or sign in to comment