Bug 1317033 - Baldr: allow 2*num-cores outstanding tasks (r=sunfish)
authorLuke Wagner <luke@mozilla.com>
Sun, 13 Nov 2016 13:21:03 -0600
changeset 349065 8c158c99496d1f9dd0d7d2c434429b1831db3155
parent 349064 ee685bfbb7d557a2b5feba3843e6ac8e986c3db4
child 349066 71825cbd0e2549d813d8279dcdb19fb357f8ab3f
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssunfish
bugs1317033
milestone52.0a1
Bug 1317033 - Baldr: allow 2*num-cores outstanding tasks (r=sunfish) MozReview-Commit-ID: 5G8ZBUoHBt9
js/src/wasm/WasmGenerator.cpp
--- a/js/src/wasm/WasmGenerator.cpp
+++ b/js/src/wasm/WasmGenerator.cpp
@@ -872,17 +872,17 @@ ModuleGenerator::startFuncDefs()
         {
             AutoLockHelperThreadState lock;
             MOZ_ASSERT(!HelperThreadState().wasmFailed(lock));
             MOZ_ASSERT(HelperThreadState().wasmWorklist(lock).empty());
             MOZ_ASSERT(HelperThreadState().wasmFinishedList(lock).empty());
         }
 #endif
         parallel_ = true;
-        numTasks = threads.maxWasmCompilationThreads();
+        numTasks = 2 * threads.maxWasmCompilationThreads();
     } else {
         numTasks = 1;
     }
 
     if (!tasks_.initCapacity(numTasks))
         return false;
     for (size_t i = 0; i < numTasks; i++)
         tasks_.infallibleEmplaceBack(*shared_, COMPILATION_LIFO_DEFAULT_CHUNK_SIZE);