From 573807d4e9d1b7a8b6956278773dfc53b544093f Mon Sep 17 00:00:00 2001 From: janakr Date: Thu, 11 Jan 2018 14:02:35 -0800 Subject: 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 --- .../google/devtools/build/lib/skyframe/TestCompletionFunction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/TestCompletionFunction.java') 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; } -- cgit v1.2.3