summaryrefslogtreecommitdiffstats
path: root/remoting/capturer/win/desktop.h
diff options
context:
space:
mode:
authorqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-28 23:53:12 +0000
committerqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-28 23:53:12 +0000
commitbac4ae80a786d68bfc18ca46f0adfcc4a1c43b0f (patch)
treeb03a21188ce47bd62405b70a1a88b8978894937c /remoting/capturer/win/desktop.h
parentb6f6c2da9566bb56632a62cf045b62ad055dd6db (diff)
downloadchromium_src-bac4ae80a786d68bfc18ca46f0adfcc4a1c43b0f.zip
chromium_src-bac4ae80a786d68bfc18ca46f0adfcc4a1c43b0f.tar.gz
chromium_src-bac4ae80a786d68bfc18ca46f0adfcc4a1c43b0f.tar.bz2
Adding upper limit to DiscardableMemoryAndroid
On android there is a total fd limit of 1024 per process. This change adds a limit to the number of DiscardableMemory we can create. The cap is set to 128 conservatively as there are other objects consuming fds. When initialization succeeds, the caller increment the global fd counter by 1. Otherwise, it will keep the fd unchanged. When fd reaches its limit, all subsequent initialization calls will fail. The global fd counter will be decremented when a successfully initialized DiscardableMemory object goes away. BUG=164052 Review URL: https://codereview.chromium.org/12088008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/capturer/win/desktop.h')
0 files changed, 0 insertions, 0 deletions