diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 22:23:01 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 22:23:01 +0000 |
commit | 4417ff416797720c2bb1d28de0a8a24f2e631f55 (patch) | |
tree | 37cdb20bfd4db4f93cd9c5b282fb24a2585854a2 /chrome/common | |
parent | 030bdf761f264aa1541a9bf26221fa47e24d5d6e (diff) | |
download | chromium_src-4417ff416797720c2bb1d28de0a8a24f2e631f55.zip chromium_src-4417ff416797720c2bb1d28de0a8a24f2e631f55.tar.gz chromium_src-4417ff416797720c2bb1d28de0a8a24f2e631f55.tar.bz2 |
Add a switch for changing the fd limit on Mac/Linux.
Bump up the default fd limit on the Mac; stopgap fix for page cyclers, but something we want long-term to improve performance once we handle fd exhaustion with delays.
BUG=none
TEST=Launching with --file-descriptor-limit=20 should crash the renderer almost immediately.
Review URL: http://codereview.chromium.org/125151
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index c57b0bb..2b3bf60 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -504,4 +504,9 @@ const wchar_t kThumbnailStore[] = L"thumbnail-store"; // is to be used only by the upgrade process. const wchar_t kTryChromeAgain[] = L"try-chrome-again"; +// The file descriptor limit is set to the value of this switch, subject to the +// OS hard limits. Useful for testing that file descriptor exhaustion is handled +// gracefully. +const wchar_t kFileDescriptorLimit[] = L"file-descriptor-limit"; + } // namespace switches diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 8d3785a..3b76100 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -192,6 +192,8 @@ extern const wchar_t kThumbnailStore[]; extern const wchar_t kTryChromeAgain[]; +extern const wchar_t kFileDescriptorLimit[]; + } // namespace switches #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |