diff options
author | tomlu <tomlu@google.com> | 2017-08-09 18:14:53 +0200 |
---|---|---|
committer | Marcel Hlopko <hlopko@google.com> | 2017-08-10 13:47:52 +0200 |
commit | 3f4bd84e9230b89d2cea120dec9c23e9a79f5be7 (patch) | |
tree | 6a21c05e21abf7b3261d4f25a5a6d20729c572eb /src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java | |
parent | dcf368372198c1a317f755f5ec6a25a158de6fda (diff) |
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
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java index fb73faf2a9..59ab7aecda 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java @@ -286,7 +286,7 @@ public class JavaProtoAspect extends NativeAspectClass implements ConfiguredAspe supportData.getDirectProtoSources(), supportData.getTransitiveImports(), supportData.getProtosInDirectDeps(), - ruleContext.getLabel().getCanonicalForm(), + ruleContext.getLabel(), ImmutableList.of(sourceJar), "Java (Immutable)", rpcSupport.allowServices(ruleContext)); |