diff options
author | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 23:00:38 +0000 |
---|---|---|
committer | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 23:00:38 +0000 |
commit | ad43f3f8db893a5ad522134a0b884567be624e32 (patch) | |
tree | 831c7cd57be612e2efa15cc7ed78f0b4045c0b9d /base/atomicops_internals_x86_gcc.h | |
parent | d03ba9bbc2dcc4f0e9ae3ebba9c6dae8ee2e0b45 (diff) | |
download | chromium_src-ad43f3f8db893a5ad522134a0b884567be624e32.zip chromium_src-ad43f3f8db893a5ad522134a0b884567be624e32.tar.gz chromium_src-ad43f3f8db893a5ad522134a0b884567be624e32.tar.bz2 |
This implements monitoring of low memory conditions on ChromeOS.
It will watch /dev/chromeos-low-mem for changes, and each time it sees
one, will discard a tab.
This depends on some changes from Luigi that implement the actual low
memory detection in the kernel.
This change has no effect if /dev/chromeos-low-mem doesn't exist.
BUG=chromium-os:18372,chromium-os:20075
TEST=Ran on workstation, touched /dev/chromeos-low-mem and verified
that a tab was discarded. Ran on device with low memory threshold set
to 80% (trigger when 80% free) and verified that tabs were discarded.
Review URL: http://codereview.chromium.org/9398006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/atomicops_internals_x86_gcc.h')
0 files changed, 0 insertions, 0 deletions