Bug 821469 - Don't start compression thread if not requested. r=billm
authorBenjamin Peterson <benjamin@python.org>
Thu, 13 Dec 2012 20:41:27 -0500
changeset 125125 65da8135423fd0ab65e9b31dff0d418587855c9e
parent 125124 2cf3cca4171e7ad18ffb52b9ba71a6942e539146
child 125126 0a05fb0f9addff5e86827abc658b1fd83d92a148
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs821469
milestone20.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 821469 - Don't start compression thread if not requested. r=billm
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -951,17 +951,17 @@ JSRuntime::init(uint32_t maxbytes)
 
     if (!scriptFilenameTable.init())
         return false;
 
     if (!threadPool.init())
         return false;
 
 #ifdef JS_THREADSAFE
-    if (!sourceCompressorThread.init())
+    if (useHelperThreads() && !sourceCompressorThread.init())
         return false;
 #endif
 
     if (!evalCache.init())
         return false;
 
     nativeStackBase = GetNativeStackBase();
     return true;