aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java
diff options
context:
space:
mode:
authorGravatar Janak Ramakrishnan <janakr@google.com>2016-10-11 22:06:40 +0000
committerGravatar Yue Gan <yueg@google.com>2016-10-12 08:56:52 +0000
commit79eb4094537d369b22ac72cab4f08a3c1a5f650e (patch)
tree3f5e5a73cd2661a82b5bb0cfaa35fd723c4f8baf /src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java
parenta629005a0f7b5c702067b2f47e048f11700a5092 (diff)
When requesting all transitive traversal values recursively, request packages/targets in parallel with subdirectories.
The previous implementation was vulnerable to incomplete traversal in case of cycles: if a subdirectory had a cycle, the targets in the package would never be requested. Requesting the package first would create a different problem, where the subdirectories would never be requested if the package depended on a cycle. Also stop uniquifying Skylark import cycles when inlining. While uniquification is nice, this was leading to us emitting an error during queries that we weren't actually emitting when not inlining. Putting the cycle into the exception error message should be enough information, and since we emit an error per exception anyway, the number of events will still be lower (although each event might be more verbose). -- MOS_MIGRATED_REVID=135846847
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java
index 9b97b4be19..95cc59b5e7 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/RecursivePkgFunction.java
@@ -58,11 +58,6 @@ public class RecursivePkgFunction implements SkyFunction {
}
@Override
- protected RecursivePkgValue getEmptyReturn() {
- return RecursivePkgValue.EMPTY;
- }
-
- @Override
protected MyVisitor getInitialVisitor() {
return new MyVisitor();
}