From 3aaeefad92fe4fda3279f03e8af7525cc76bf434 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 4 Oct 2024 16:20:21 +0100 Subject: [PATCH] KE2: Enable 8 threads --- java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt b/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt index 560c05d29f9..ab4f6a45cf7 100644 --- a/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt +++ b/java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt @@ -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