Skip to content

Commit

Permalink
KE2: Enable 8 threads
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Oct 4, 2024
1 parent fd3ac0b commit 3aaeefa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions java/kotlin-extractor2/src/main/kotlin/KotlinExtractor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3aaeefa

Please sign in to comment.