diff options
author | 2018-02-14 09:03:18 -0800 | |
---|---|---|
committer | 2018-02-14 09:04:44 -0800 | |
commit | baf52ae4bddd308057b44faa48146175a415fd9b (patch) | |
tree | 9faa88d6800d1fa880c0633a2233a1d3dc1ddd85 /src/test/java/com | |
parent | a96547fc2c37ec417ccf6931f776ad41b6cbf875 (diff) |
Make ActionLookupData a SkyKey. Should save some memory.
PiperOrigin-RevId: 185694489
Diffstat (limited to 'src/test/java/com')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/ArtifactFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/ArtifactFunctionTest.java index 21b0a10274..0a8c460803 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/ArtifactFunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/ArtifactFunctionTest.java @@ -347,7 +347,7 @@ public class ArtifactFunctionTest extends ArtifactFunctionTestCase { Map<Artifact, FileArtifactValue> additionalOutputData = new HashMap<>(); ActionLookupData actionLookupData = (ActionLookupData) skyKey.argument(); ActionLookupValue actionLookupValue = - (ActionLookupValue) env.getValue(actionLookupData.getActionLookupNode()); + (ActionLookupValue) env.getValue(actionLookupData.getActionLookupKey()); Action action = actionLookupValue.getAction(actionLookupData.getActionIndex()); Artifact output = Iterables.getOnlyElement(action.getOutputs()); diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/FilesystemValueCheckerTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/FilesystemValueCheckerTest.java index 48ccd7e341..648e038f11 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/FilesystemValueCheckerTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/FilesystemValueCheckerTest.java @@ -361,7 +361,7 @@ public class FilesystemValueCheckerTest { FileSystemUtils.writeContentAsLatin1(out1.getPath(), "hello"); FileSystemUtils.writeContentAsLatin1(out2.getPath(), "fizzlepop"); - SkyKey actionLookupKey = + ActionLookupKey actionLookupKey = new ActionLookupKey() { @Override public SkyFunctionName functionName() { @@ -440,7 +440,7 @@ public class FilesystemValueCheckerTest { SpecialArtifact last = createTreeArtifact("zzzzzzzzzz"); FileSystemUtils.createDirectoryAndParents(last.getPath()); - SkyKey actionLookupKey = + ActionLookupKey actionLookupKey = new ActionLookupKey() { @Override public SkyFunctionName functionName() { diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactMetadataTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactMetadataTest.java index 9e3fd39ddd..aaadc2295a 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactMetadataTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactMetadataTest.java @@ -250,7 +250,7 @@ public class TreeArtifactMetadataTest extends ArtifactFunctionTestCase { Map<TreeFileArtifact, FileArtifactValue> treeArtifactData = new HashMap<>(); ActionLookupData actionLookupData = (ActionLookupData) skyKey.argument(); ActionLookupValue actionLookupValue = - (ActionLookupValue) env.getValue(actionLookupData.getActionLookupNode()); + (ActionLookupValue) env.getValue(actionLookupData.getActionLookupKey()); Action action = actionLookupValue.getAction(actionLookupData.getActionIndex()); SpecialArtifact output = (SpecialArtifact) Iterables.getOnlyElement(action.getOutputs()); for (PathFragment subpath : testTreeArtifactContents) { |