diff options
author | Mark Schaller <mschaller@google.com> | 2015-06-19 21:26:27 +0000 |
---|---|---|
committer | Laszlo Csomor <laszlocsomor@google.com> | 2015-06-23 09:00:27 +0000 |
commit | 135c9ce35966db63ffc6bf757168a4116c102954 (patch) | |
tree | 8343468b6a5f38eb850db9deacab150930695627 /src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java | |
parent | 3062abbf5e143f1ac5115088fbf4eda5efadcd63 (diff) |
Doc cleanup for PDOPV, re: its change pruning behavior
--
MOS_MIGRATED_REVID=96439703
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java index 918b31fd15..eac1b89e22 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsValue.java @@ -27,6 +27,13 @@ import java.util.Objects; * The value returned by {@link PrepareDepsOfPatternsFunction}. Because that function is * invoked only for its side effect (i.e. ensuring the graph contains targets matching the * pattern sequence and their transitive dependencies), this value carries no information. + * + * <p>Because the returned value is always the same object, this value and the + * {@link PrepareDepsOfPatternsFunction} which computes it are incompatible with change pruning. It + * should only be requested by consumers who do not require reevaluation when + * {@link PrepareDepsOfPatternsFunction} is reevaluated. Safe consumers include, e.g., top-level + * consumers, and other functions which invoke {@link PrepareDepsOfPatternsFunction} solely for its + * side-effects. */ @Immutable @ThreadSafe @@ -42,7 +49,7 @@ public final class PrepareDepsOfPatternsValue implements SkyValue { new TargetPatternSequence(patterns, policy, offset)); } - /** The argument value for SkyKeys of {@link PrepareDepsOfPatternsFunction}. */ + /** The argument value for {@link SkyKey}s of {@link PrepareDepsOfPatternsFunction}. */ @ThreadSafe public static class TargetPatternSequence implements Serializable { private final ImmutableList<String> patterns; |