Bug 1606706 - Part 3: Enable new TaskController code by default. r=smaug
authorBas Schouten <bschouten@mozilla.com>
Wed, 01 Jul 2020 01:36:08 +0000
changeset 538130 37c7c2fad0cb5246950be9ae2dd2075f4ef879e6
parent 538129 df91fb44b2d4bd8cf55cb2a5360094feb2c6ca6b
child 538131 2f98a1a35342a4e07f55536a3bfe6770a7a36423
push id37558
push userdluca@mozilla.com
push dateWed, 01 Jul 2020 09:30:12 +0000
treeherdermozilla-central@e950bdd669d4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1606706
milestone80.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1606706 - Part 3: Enable new TaskController code by default. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D74673
xpcom/threads/nsThread.h
--- a/xpcom/threads/nsThread.h
+++ b/xpcom/threads/nsThread.h
@@ -41,17 +41,18 @@ using mozilla::NotNull;
 
 class nsLocalExecutionRecord;
 class nsThreadEnumerator;
 
 // See https://www.w3.org/TR/longtasks
 #define LONGTASK_BUSY_WINDOW_MS 50
 
 static inline bool UseTaskController() {
-  static const bool kUseTaskController = !!PR_GetEnv("MOZ_USE_TASKCONTROLLER");
+  static const bool kUseTaskController =
+      !PR_GetEnv("MOZ_DISABLE_TASKCONTROLLER");
   return kUseTaskController;
 }
 
 // A class for managing performance counter state.
 namespace mozilla {
 class PerformanceCounterState {
  public:
   explicit PerformanceCounterState(const uint32_t& aNestedEventLoopDepthRef,