Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use only one compile thread
Browse files Browse the repository at this point in the history
edwardalee authored and lhstrh committed Jan 6, 2024

Verified

This commit was signed with the committer’s verified signature.
lhstrh Marten Lohstroh
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
@@ -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()

0 comments on commit a7a51f2

Please sign in to comment.