Skip to content

Commit

Permalink
Use only one compile thread
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee authored and lhstrh committed Jan 6, 2024
1 parent 7425ddd commit a7a51f2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,13 @@ private Map<Path, CodeMap> compileFederates(
JavaIoFileSystemAccess fsa = inj.getInstance(JavaIoFileSystemAccess.class);
fsa.setOutputPath("DEFAULT_OUTPUT", fileConfig.getSrcGenPath().toString());

var numOfCompileThreads =
var numOfCompileThreads = 1;
/* NOTE: Used to compile in parallel using the following. This causes the compiler to
to nondeterministically lock up on MacOS, which causes the tests to fail after the total
time allowed for the test expires (currently two hours).
Math.min(
6, Math.min(Math.max(federates.size(), 1), Runtime.getRuntime().availableProcessors()));
*/
var compileThreadPool = Executors.newFixedThreadPool(numOfCompileThreads);
messageReporter
.nowhere()
Expand Down

0 comments on commit a7a51f2

Please sign in to comment.