diff options
author | janakr <janakr@google.com> | 2018-01-11 14:02:35 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-01-11 14:04:37 -0800 |
commit | 573807d4e9d1b7a8b6956278773dfc53b544093f (patch) | |
tree | ce89c3a760afbb113f78621a2b1ef0cbb9cef5e5 /src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java | |
parent | 42623f59fdd3bfbdfc21490c69f21537fa32011c (diff) |
Convert ActionLookupKey implementations to directly implement SkyKey, removing the layer of indirection of getting SkyKey out of ActionLookupKey, which uses more memory for no reason.
PiperOrigin-RevId: 181658615
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java index 32e5ec5f0b..4a9946a1bc 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java @@ -32,13 +32,13 @@ public final class TestCompletionFunction implements SkyFunction { public SkyValue compute(SkyKey skyKey, Environment env) throws InterruptedException { TestCompletionValue.TestCompletionKey key = (TestCompletionValue.TestCompletionKey) skyKey.argument(); - ConfiguredTargetKey lac = key.configuredTargetKey(); + ConfiguredTargetKey ctKey = key.configuredTargetKey(); TopLevelArtifactContext ctx = key.topLevelArtifactContext(); - if (env.getValue(TargetCompletionValue.key(lac, ctx, /*willTest=*/true)) == null) { + if (env.getValue(TargetCompletionValue.key(ctKey, ctx, /*willTest=*/ true)) == null) { return null; } - ConfiguredTargetValue ctValue = (ConfiguredTargetValue) env.getValue(lac.getSkyKey()); + ConfiguredTargetValue ctValue = (ConfiguredTargetValue) env.getValue(ctKey); if (ctValue == null) { return null; } |