Bug 974373: Shows a warning when logging in Odin parallel compilation mode; r=h4writer

This commit is contained in:
Benjamin Bouvier 2014-02-19 16:02:13 +01:00
parent 886d3fd038
commit 75cee27b76

View File

@ -5684,6 +5684,8 @@ CheckFunctionsParallel(ModuleCompiler &m)
if (!ParallelCompilationEnabled(m.cx()) || !g.claim())
return CheckFunctionsSequential(m);
IonSpew(IonSpew_Logs, "Can't log asm.js script. (Compiled on background thread.)");
// Saturate all worker threads plus the main thread.
size_t numParallelJobs = WorkerThreadState().threadCount + 1;