content: Improve HostDiscardableSharedMemoryManager's memory pressure handling.
commit76741807d75d891fdadf1a7d4635be7ee35c13f7
authorreveman <reveman@chromium.org>
Wed, 25 Feb 2015 20:47:54 +0000 (25 12:47 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 25 Feb 2015 20:48:32 +0000 (25 20:48 +0000)
tree39ad114733adb10d8702a74341eff6d239def65d
parent4e33daeb908406a54fea9bc3a30554aec9474571
content: Improve HostDiscardableSharedMemoryManager's memory pressure handling.

This reduces the chance of an OOM error by handling moderate
memory pressure signals. HostDiscardableSharedMemoryManager will
purge discardable memory until usage is within half of |memory_limit_|
when receiving this signal.

BUG=460995

Review URL: https://codereview.chromium.org/944823007

Cr-Commit-Position: refs/heads/master@{#318108}
content/common/host_discardable_shared_memory_manager.cc