diff options
author | 2015-09-28 14:57:27 +0000 | |
---|---|---|
committer | 2015-09-30 09:30:48 +0000 | |
commit | 0113352ad8c5653d04af7bcbd7b1225000652ab3 (patch) | |
tree | 75b4b1970d41005b42266509110b50df2f5eaddb /src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java | |
parent | c0993919fc9bbd615c2540684181f87ee94f413a (diff) |
Set the SkyframeActionExecutor.reporter in prepareForExecution.
Remove a lot of now-unused Reporter parameters.
--
MOS_MIGRATED_REVID=104100061
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 | 19 |
1 files changed, 9 insertions, 10 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 e2cc19f6ca..f85e6a1196 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 @@ -255,7 +255,6 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { private static final Logger LOG = Logger.getLogger(SkyframeExecutor.class.getName()); protected SkyframeExecutor( - Reporter reporter, EvaluatorSupplier evaluatorSupplier, PackageFactory pkgFactory, TimestampGranularityMonitor tsgm, @@ -269,7 +268,6 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { ImmutableMap<SkyFunctionName, SkyFunction> extraSkyFunctions, ImmutableList<PrecomputedValue.Injected> extraPrecomputedValues, boolean errorOnExternalFiles) { - Preconditions.checkNotNull(reporter); // Strictly speaking, these arguments are not required for initialization, but all current // callsites have them at hand, so we might as well set them during construction. this.evaluatorSupplier = evaluatorSupplier; @@ -282,8 +280,8 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { new SkyframeTargetPatternEvaluator(this), syscalls, cyclesReporter, pkgLocator, numPackagesLoaded, this); this.resourceManager = ResourceManager.instance(); - this.skyframeActionExecutor = new SkyframeActionExecutor(reporter, resourceManager, eventBus, - statusReporterRef); + this.skyframeActionExecutor = new SkyframeActionExecutor( + resourceManager, eventBus, statusReporterRef); this.directories = Preconditions.checkNotNull(directories); this.buildInfoFactories = buildInfoFactories; this.immutableDirectories = immutableDirectories; @@ -1029,7 +1027,7 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { * given test targets. */ public EvaluationResult<?> buildArtifacts( - EventHandler eventHandler, + Reporter reporter, Executor executor, Set<Artifact> artifactsToBuild, Collection<ConfiguredTarget> targetsToBuild, @@ -1045,7 +1043,8 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { checkActive(); Preconditions.checkState(actionLogBufferPathGenerator != null); - skyframeActionExecutor.prepareForExecution(executor, keepGoing, explain, actionCacheChecker); + skyframeActionExecutor.prepareForExecution( + reporter, executor, keepGoing, explain, actionCacheChecker); resourceManager.resetResourceUsage(); try { @@ -1058,7 +1057,7 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { Iterables.concat(artifactKeys, targetKeys, aspectKeys, testKeys), keepGoing, numJobs, - eventHandler); + reporter); } finally { progressReceiver.executionProgressReceiver = null; // Also releases thread locks. @@ -1069,9 +1068,9 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { } @VisibleForTesting - public void prepareBuildingForTestingOnly(Executor executor, boolean keepGoing, boolean explain, - ActionCacheChecker checker) { - skyframeActionExecutor.prepareForExecution(executor, keepGoing, explain, checker); + public void prepareBuildingForTestingOnly(Reporter reporter, Executor executor, boolean keepGoing, + boolean explain, ActionCacheChecker checker) { + skyframeActionExecutor.prepareForExecution(reporter, executor, keepGoing, explain, checker); } EvaluationResult<TargetPatternValue> targetPatterns(Iterable<SkyKey> patternSkyKeys, |