diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-05 23:15:58 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-05 23:15:58 +0000 |
commit | 56fedfa29f49ce793d3343525f120eaff5f2b752 (patch) | |
tree | a4b709a6fbc9587338f3fed58f5f885e8138486a /chrome/common | |
parent | 27bc9e8ac1922f88fbe003c9b050add4e27321b0 (diff) | |
download | chromium_src-56fedfa29f49ce793d3343525f120eaff5f2b752.zip chromium_src-56fedfa29f49ce793d3343525f120eaff5f2b752.tar.gz chromium_src-56fedfa29f49ce793d3343525f120eaff5f2b752.tar.bz2 |
[Mac] Use Linux WorkerPool code.
Adapts things to use the Linux WorkerPool code by default, with
--disable-linux-workerpool to switch back to the old version.
The old implementation uses NSOperationQueue, which is implemented in
terms of pthread workqueues. These are implicated by the stack traces
from the recent unit test flakiness. This change attempts to
influence that flakiness.
BUG=20471, 60426
TEST=Tree green.
Review URL: http://codereview.chromium.org/4595001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 7 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 286539c..438c0c0 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -1231,6 +1231,13 @@ const char kEnableExposeForTabs[] = "enable-expose-for-tabs"; // Cause the OS X sandbox write to syslog every time an access to a resource // is denied by the sandbox. const char kEnableSandboxLogging[] = "enable-sandbox-logging"; + + +// Temporary flag to revert to the old WorkerPool implementation. +// This will be removed once we either fix the Mac WorkerPool +// implementation, or completely switch to the shared (with Linux) +// implementation. +const char kDisableLinuxWorkerPool[] = "disable-linux-worker-pool"; #else // Enable Kiosk mode. const char kKioskMode[] = "kiosk"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index fb86311..c68b16f 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -359,6 +359,7 @@ extern const char kPasswordStore[]; extern const char kDisableHolePunching[]; extern const char kEnableExposeForTabs[]; extern const char kEnableSandboxLogging[]; +extern const char kDisableLinuxWorkerPool[]; #else extern const char kKioskMode[]; #endif |