aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
diff options
context:
space:
mode:
authorGravatar shahan <shahan@google.com>2018-06-07 18:57:07 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-07 18:58:43 -0700
commit499503bbfe192f109f05270e5391265c0cd0966f (patch)
tree3ab01c638f6dca2e1167839864f5c734817b6a55 /src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
parent1bef35d54d3f25a69a7055b3a5f19e425b54a4d1 (diff)
Deletes ActionInputFileCache.
PiperOrigin-RevId: 199732415
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
index d0cb1433a6..acc97e046f 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
@@ -36,7 +36,6 @@ import com.google.devtools.build.lib.actions.ActionExecutionException;
import com.google.devtools.build.lib.actions.ActionExecutionStatusReporter;
import com.google.devtools.build.lib.actions.ActionGraph;
import com.google.devtools.build.lib.actions.ActionInput;
-import com.google.devtools.build.lib.actions.ActionInputFileCache;
import com.google.devtools.build.lib.actions.ActionInputPrefetcher;
import com.google.devtools.build.lib.actions.ActionKeyContext;
import com.google.devtools.build.lib.actions.ActionLogBufferPathGenerator;
@@ -58,6 +57,7 @@ import com.google.devtools.build.lib.actions.Executor;
import com.google.devtools.build.lib.actions.FileArtifactValue;
import com.google.devtools.build.lib.actions.FilesetOutputSymlink;
import com.google.devtools.build.lib.actions.MapBasedActionGraph;
+import com.google.devtools.build.lib.actions.MetadataProvider;
import com.google.devtools.build.lib.actions.MutableActionGraph;
import com.google.devtools.build.lib.actions.MutableActionGraph.ActionConflictException;
import com.google.devtools.build.lib.actions.NotifyOnActionCacheHit;
@@ -150,7 +150,7 @@ public final class SkyframeActionExecutor {
private ImmutableMap<ActionAnalysisMetadata, ConflictException> badActionMap = ImmutableMap.of();
private boolean keepGoing;
private boolean hadExecutionError;
- private ActionInputFileCache perBuildFileCache;
+ private MetadataProvider perBuildFileCache;
private ActionInputPrefetcher actionInputPrefetcher;
/** These variables are nulled out between executions. */
private ProgressSupplier progressSupplier;
@@ -505,7 +505,7 @@ public final class SkyframeActionExecutor {
* tasks related to that action.
*/
public ActionExecutionContext getContext(
- ActionInputFileCache graphFileCache,
+ MetadataProvider graphFileCache,
MetadataHandler metadataHandler,
Map<Artifact, Collection<Artifact>> expandedInputs,
ImmutableMap<PathFragment, ImmutableList<FilesetOutputSymlink>> inputFilesetMappings,
@@ -657,8 +657,8 @@ public final class SkyframeActionExecutor {
}
}
- private ActionInputFileCache createFileCache(
- ActionInputFileCache graphFileCache, @Nullable ActionFileSystem actionFileSystem) {
+ private MetadataProvider createFileCache(
+ MetadataProvider graphFileCache, @Nullable ActionFileSystem actionFileSystem) {
if (actionFileSystem != null) {
return actionFileSystem;
}
@@ -688,7 +688,7 @@ public final class SkyframeActionExecutor {
return hadExecutionError && !keepGoing;
}
- void configure(ActionInputFileCache fileCache, ActionInputPrefetcher actionInputPrefetcher) {
+ void configure(MetadataProvider fileCache, ActionInputPrefetcher actionInputPrefetcher) {
this.perBuildFileCache = fileCache;
this.actionInputPrefetcher = actionInputPrefetcher;
}
@@ -1255,12 +1255,12 @@ public final class SkyframeActionExecutor {
this.completionReceiver = completionReceiver;
}
- private static class DelegatingPairFileCache implements ActionInputFileCache {
- private final ActionInputFileCache perActionCache;
- private final ActionInputFileCache perBuildFileCache;
+ private static class DelegatingPairFileCache implements MetadataProvider {
+ private final MetadataProvider perActionCache;
+ private final MetadataProvider perBuildFileCache;
- private DelegatingPairFileCache(ActionInputFileCache mainCache,
- ActionInputFileCache perBuildFileCache) {
+ private DelegatingPairFileCache(
+ MetadataProvider mainCache, MetadataProvider perBuildFileCache) {
this.perActionCache = mainCache;
this.perBuildFileCache = perBuildFileCache;
}