From 3f4bd84e9230b89d2cea120dec9c23e9a79f5be7 Mon Sep 17 00:00:00 2001 From: tomlu Date: Wed, 9 Aug 2017 18:14:53 +0200 Subject: Defer expansion of certain proto command line string arguments. Memory is saved by sharing the format string and label object instances, instead of constructing new strings for each action. RELNOTES: None PiperOrigin-RevId: 164731899 --- .../google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java') diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java index 93da48062a..b40bbc7863 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java @@ -248,7 +248,7 @@ public class JavaLiteProtoAspect extends NativeAspectClass implements Configured supportData.getDirectProtoSources(), supportData.getTransitiveImports(), supportData.getProtosInDirectDeps(), - ruleContext.getLabel().getCanonicalForm(), + ruleContext.getLabel(), ImmutableList.of(sourceJar), "JavaLite", true /* allowServices */); -- cgit v1.2.3