Skip to content

Commit

Permalink
Try to reduce number of parallel AOT compilations
Browse files Browse the repository at this point in the history
To check whether it will improve memory issues on CI
  • Loading branch information
radekdoulik committed Jun 26, 2024
1 parent d5a0bc4 commit 5d9a6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/AotCompilerTask/MonoAOTCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ private bool ExecuteInternal()
}
else
{
int allowedParallelism = DisableParallelAot ? 1 : Math.Min(_assembliesToCompile.Count, Environment.ProcessorCount);
int allowedParallelism = DisableParallelAot ? 1 : Math.Min(_assembliesToCompile.Count, Math.Max(1, Environment.ProcessorCount/2));
if (BuildEngine is IBuildEngine9 be9)
allowedParallelism = be9.RequestCores(allowedParallelism);

Expand Down

0 comments on commit 5d9a6d2

Please sign in to comment.