From 6a91f96664276bfd6ced132974b07f1b060cda0a Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Mon, 1 May 2017 21:15:44 -0700 Subject: [PATCH] issue #385: unconditionally disable JS source compression --- js/src/jsscript.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/src/jsscript.cpp b/js/src/jsscript.cpp index 778117a4c..854f47bcf 100644 --- a/js/src/jsscript.cpp +++ b/js/src/jsscript.cpp @@ -2060,6 +2060,7 @@ ScriptSource::setSourceCopy(ExclusiveContext* cx, SourceBufferHolder& srcBuf, // thread (see HelperThreadState::canStartParseTask) which would cause a // deadlock if there wasn't a second helper thread that could make // progress on our compression task. +#if(0) bool canCompressOffThread = HelperThreadState().cpuCount > 1 && HelperThreadState().threadCount >= 2 && @@ -2073,6 +2074,10 @@ ScriptSource::setSourceCopy(ExclusiveContext* cx, SourceBufferHolder& srcBuf, } else if (!ensureOwnsSource(cx)) { return false; } +#else + if (!ensureOwnsSource(cx)) + return false; +#endif return true; }