diff options
author | tomlu <tomlu@google.com> | 2018-06-18 16:16:36 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-18 16:18:08 -0700 |
commit | 9e91f20bb31e44b4be836996ac9d91af61e1e822 (patch) | |
tree | 7e7c116290099ef5a8e16e67a9d4f5a0c908fbf9 /src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java | |
parent | d4406d644efcf86327834a56b01cc212389e52e7 (diff) |
Remove support for --discard_actions_after_execution.
The memory savings from this flag are not worth the complexity, and it interferes with action restarting.
RELNOTES: Remove support for --discard_actions_after_execution.
PiperOrigin-RevId: 201077905
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 | 25 |
1 files changed, 8 insertions, 17 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 b498a6e140..32b5ca0d56 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 @@ -287,7 +287,6 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { protected SkyframeIncrementalBuildMonitor incrementalBuildMonitor = new SkyframeIncrementalBuildMonitor(); - protected final MutableSupplier<Boolean> removeActionsAfterEvaluation = new MutableSupplier<>(); private MutableSupplier<ImmutableList<ConfigurationFragmentFactory>> configurationFragments = new MutableSupplier<>(); @@ -386,7 +385,6 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { this.crossRepositoryLabelViolationStrategy = crossRepositoryLabelViolationStrategy; this.buildFilesByPriority = buildFilesByPriority; this.actionOnIOExceptionReadingBuildFile = actionOnIOExceptionReadingBuildFile; - this.removeActionsAfterEvaluation.set(false); this.packageProgress = packageProgress; } @@ -466,7 +464,6 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { new BuildViewProvider(), ruleClassProvider, cpuBoundSemaphore, - removeActionsAfterEvaluation, shouldStoreTransitivePackagesInLoadingAndAnalysis(), shouldUnblockCpuWorkWhenFetchingDeps, defaultBuildOptions)); @@ -475,7 +472,6 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { new AspectFunction( new BuildViewProvider(), ruleClassProvider, - removeActionsAfterEvaluation, skylarkImportLookupFunctionForInlining, shouldStoreTransitivePackagesInLoadingAndAnalysis(), defaultBuildOptions)); @@ -505,16 +501,9 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { map.put( SkyFunctions.BUILD_INFO_COLLECTION, new BuildInfoCollectionFunction( - actionKeyContext, - artifactFactory::get, - buildInfoFactories, - removeActionsAfterEvaluation)); - map.put( - SkyFunctions.BUILD_INFO, - new WorkspaceStatusFunction(removeActionsAfterEvaluation, this::makeWorkspaceStatusAction)); - map.put( - SkyFunctions.COVERAGE_REPORT, - new CoverageReportFunction(actionKeyContext, removeActionsAfterEvaluation)); + actionKeyContext, artifactFactory::get, buildInfoFactories)); + map.put(SkyFunctions.BUILD_INFO, new WorkspaceStatusFunction(this::makeWorkspaceStatusAction)); + map.put(SkyFunctions.COVERAGE_REPORT, new CoverageReportFunction(actionKeyContext)); ActionExecutionFunction actionExecutionFunction = new ActionExecutionFunction(skyframeActionExecutor, directories, tsgm); map.put(SkyFunctions.ACTION_EXECUTION, actionExecutionFunction); @@ -524,7 +513,7 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { map.put(SkyFunctions.FILESET_ENTRY, new FilesetEntryFunction()); map.put( SkyFunctions.ACTION_TEMPLATE_EXPANSION, - new ActionTemplateExpansionFunction(actionKeyContext, removeActionsAfterEvaluation)); + new ActionTemplateExpansionFunction(actionKeyContext)); map.put(SkyFunctions.LOCAL_REPOSITORY_LOOKUP, new LocalRepositoryLookupFunction()); map.put( SkyFunctions.REGISTERED_EXECUTION_PLATFORMS, new RegisteredExecutionPlatformsFunction()); @@ -761,8 +750,10 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory { * longer. */ public void decideKeepIncrementalState( - boolean batch, boolean keepStateAfterBuild, boolean trackIncrementalState, - boolean discardAnalysisCache, boolean discardActionsAfterExecution, + boolean batch, + boolean keepStateAfterBuild, + boolean trackIncrementalState, + boolean discardAnalysisCache, EventHandler eventHandler) { // Assume incrementality. } |