KE2: Enable 8 threads

This commit is contained in:
Ian Lynagh
2024-10-04 16:20:21 +01:00
parent fd3ac0b838
commit 3aaeefad92

View File

@@ -222,8 +222,7 @@ fun doAnalysis(
val checkTrapIdentical = false // TODO
analyze(sourceModule) {
val maxThreads = 1 // TODO: Default to 8 temporarily to ensure concurrency,
// TODO: Later, default to $CODEQL_THREADS or Runtime.getRuntime().availableProcessors()
val maxThreads = 8 // TODO: Later, default to $CODEQL_THREADS or Runtime.getRuntime().availableProcessors()
// If a Kotlin coroutine yields, then a thread will be freed up
// and start extracting the next file. We want to avoid having
// lots of TRAP files open at once, so we use a semaphore so that