mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-08-14 10:29:31 +00:00
issue #385: unconditionally disable JS source compression
This commit is contained in:
parent
c9b2922b70
commit
6a91f96664
@ -2060,6 +2060,7 @@ ScriptSource::setSourceCopy(ExclusiveContext* cx, SourceBufferHolder& srcBuf,
|
|||||||
// thread (see HelperThreadState::canStartParseTask) which would cause a
|
// thread (see HelperThreadState::canStartParseTask) which would cause a
|
||||||
// deadlock if there wasn't a second helper thread that could make
|
// deadlock if there wasn't a second helper thread that could make
|
||||||
// progress on our compression task.
|
// progress on our compression task.
|
||||||
|
#if(0)
|
||||||
bool canCompressOffThread =
|
bool canCompressOffThread =
|
||||||
HelperThreadState().cpuCount > 1 &&
|
HelperThreadState().cpuCount > 1 &&
|
||||||
HelperThreadState().threadCount >= 2 &&
|
HelperThreadState().threadCount >= 2 &&
|
||||||
@ -2073,6 +2074,10 @@ ScriptSource::setSourceCopy(ExclusiveContext* cx, SourceBufferHolder& srcBuf,
|
|||||||
} else if (!ensureOwnsSource(cx)) {
|
} else if (!ensureOwnsSource(cx)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (!ensureOwnsSource(cx))
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user