Skip to content

Commit a7a51f2

Browse files
edwardaleelhstrh
authored andcommitted
Use only one compile thread
1 parent 7425ddd commit a7a51f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/java/org/lflang/federated/generator/FedGenerator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,13 @@ private Map<Path, CodeMap> compileFederates(
309309
JavaIoFileSystemAccess fsa = inj.getInstance(JavaIoFileSystemAccess.class);
310310
fsa.setOutputPath("DEFAULT_OUTPUT", fileConfig.getSrcGenPath().toString());
311311

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

0 commit comments

Comments
 (0)