Re-land: base: Enable browser-wide discardable memory on Linux, CrOS and Windows.
commitfdfea459b1e5b3ffae10b781a33f884b99a0f2a4
authorreveman <reveman@chromium.org>
Thu, 8 Jan 2015 23:39:21 +0000 (8 15:39 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 8 Jan 2015 23:41:25 +0000 (8 23:41 +0000)
treef8683e758ea796811439006c05ce35cdb54a726e
parent2bc20bb643d11c6888cbe8dffed571e9576bbee5
Re-land: base: Enable browser-wide discardable memory on Linux, CrOS and Windows.

This makes SHMEM implementation of discardable memory preferred
over EMULATED implementation. This effectively makes SHMEM the
implementation used by default on Linux, CrOS and Windows.

SHMEM implementation of discardable memory gives the browser
process control over the total amount of discardable memory used
and allows us to enforce a global limit of 512MB across all
renderers.

BUG=429415,429416

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

Cr-Commit-Position: refs/heads/master@{#310628}
base/memory/discardable_memory_android.cc
base/memory/discardable_memory_linux.cc
base/memory/discardable_memory_mac.cc
base/memory/discardable_memory_win.cc