diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java b/src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java index b04fec642d..4f8dcfd229 100644 --- a/src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java +++ b/src/main/java/com/google/devtools/build/skyframe/ParallelEvaluator.java @@ -353,8 +353,10 @@ public final class ParallelEvaluator implements Evaluator { } if (bubbleErrorInfo != null) { - // Set interrupted status, so that calling SkyFunction doesn't try anything fancy after - // this. + // Set interrupted status, to try to prevent the calling SkyFunction from doing anything + // fancy after this. SkyFunctions executed during error bubbling are supposed to + // (quickly) rethrow errors or return a value/null (but there's currently no way to + // enforce this). Thread.currentThread().interrupt(); } if (errorInfo.getException() != null) { |