diff options
author | 2018-07-26 09:40:58 -0700 | |
---|---|---|
committer | 2018-07-26 09:42:29 -0700 | |
commit | e24a591d4288b33dfbf790e89e0def610fe6a7d9 (patch) | |
tree | 7499dcd1e9ef99257966d7fc9c6e768eb1622b54 /src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java | |
parent | 09efb3fb5cbefe48d7c6685b01cfd72f848563c8 (diff) |
Target pattern eval: use the same number of threads as loading
Instead of using the default thread pool size of 200, use the number set for
the loading phase. This is in preparation for interleaving the loading and
target pattern eval phases.
PiperOrigin-RevId: 206172915
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java index 8094c71eef..80ad0b3d96 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java @@ -2200,6 +2200,7 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { List<String> targetPatterns, PathFragment relativeWorkingDirectory, LoadingOptions options, + int threadCount, boolean keepGoing, boolean determineTests) throws TargetParsingException, InterruptedException { @@ -2219,7 +2220,7 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { eventHandler.post(new LoadingPhaseStartedEvent(packageProgress)); evalResult = buildDriver.evaluate( - ImmutableList.of(key), keepGoing, /*numThreads=*/ DEFAULT_THREAD_COUNT, eventHandler); + ImmutableList.of(key), keepGoing, threadCount, eventHandler); if (evalResult.hasError()) { ErrorInfo errorInfo = evalResult.getError(key); TargetParsingException exc; |