aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/skyframe
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-04-24 09:32:36 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-24 09:34:21 -0700
commitd1af4306095545151b1c062e5544f80496ceb5eb (patch)
treeb2e8857d58a62767017a04348b5a3e4fcc7b182b /src/main/java/com/google/devtools/build/skyframe
parent59368559a1fc42a4e7a81f6892173ea086e34852 (diff)
Add hook to inform SkyframeExecutor that build is finished.
PiperOrigin-RevId: 194099006
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe')
-rw-r--r--src/main/java/com/google/devtools/build/skyframe/MemoizingEvaluator.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/skyframe/MemoizingEvaluator.java b/src/main/java/com/google/devtools/build/skyframe/MemoizingEvaluator.java
index 5c7d386555..dac0927ca0 100644
--- a/src/main/java/com/google/devtools/build/skyframe/MemoizingEvaluator.java
+++ b/src/main/java/com/google/devtools/build/skyframe/MemoizingEvaluator.java
@@ -99,6 +99,14 @@ public interface MemoizingEvaluator {
Map<SkyKey, ? extends NodeEntry> getGraphMap();
/**
+ * Informs the evaluator that a sequence of evaluations at the same version has finished.
+ * Evaluators may make optimizations under the assumption that successive evaluations are all at
+ * the same version. A call of this method tells the evaluator that the next evaluation is not
+ * guaranteed to be at the same version.
+ */
+ default void noteEvaluationsAtSameVersionMayBeFinished() throws InterruptedException {}
+
+ /**
* Returns the done (without error) values in the graph.
*
* <p>The returned map may be a live view of the graph.