Skip to content

Commit

Permalink
Include scanning: Use a ForkJoinPool
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 269520385
  • Loading branch information
ulfjack authored and copybara-github committed Sep 17, 2019
1 parent c541dd1 commit 365a26b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import com.google.devtools.build.lib.analysis.ArtifactsToOwnerLabels;
import com.google.devtools.build.lib.analysis.BlazeDirectories;
import com.google.devtools.build.lib.buildtool.BuildRequest;
import com.google.devtools.build.lib.concurrent.ExecutorUtil;
import com.google.devtools.build.lib.concurrent.NamedForkJoinPool;
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadHostile;
import com.google.devtools.build.lib.exec.ActionContextProvider;
import com.google.devtools.build.lib.exec.ExecutorBuilder;
Expand Down Expand Up @@ -282,7 +282,7 @@ public void executorCreated(Iterable<ActionContext> usedContexts) throws Executo
if (threads > 0) {
log.info(
String.format("Include scanning configured to use a pool with %d threads", threads));
includePool = ExecutorUtil.newSlackPool(threads, "Include scanner");
includePool = NamedForkJoinPool.newNamedPool("Include scanner", threads);
} else {
log.info("Include scanning configured to use a direct executor");
includePool = MoreExecutors.newDirectExecutorService();
Expand Down

0 comments on commit 365a26b

Please sign in to comment.