File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/main/java/com/google/devtools/build/lib/skyframe Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,10 @@ private static void constructActionGraphAndArtifactList(
125
125
}
126
126
}
127
127
128
- void shutdown () throws InterruptedException {
129
- if (!executorService .isShutdown () && ExecutorUtil .uninterruptibleShutdown (executorService )) {
130
- throw new InterruptedException ();
128
+ void shutdown () {
129
+ if (!executorService .isShutdown () && ExecutorUtil .interruptibleShutdown (executorService )) {
130
+ // Preserve the interrupt status.
131
+ Thread .currentThread ().interrupt ();
131
132
}
132
133
}
133
134
Original file line number Diff line number Diff line change @@ -2492,7 +2492,7 @@ public void resetBuildDriverFunction() {
2492
2492
}
2493
2493
2494
2494
/** Resets the incremental artifact conflict finder to ensure incremental correctness. */
2495
- public void resetIncrementalArtifactConflictFindingStates () throws InterruptedException {
2495
+ public void resetIncrementalArtifactConflictFindingStates () {
2496
2496
incrementalArtifactConflictFinder .shutdown ();
2497
2497
incrementalTransitiveActionLookupKeysCollector .shutdown ();
2498
2498
incrementalArtifactConflictFinder =
@@ -3856,9 +3856,10 @@ private boolean tryClaimVisitation(
3856
3856
&& collected .putIfAbsent (key , ClaimedLookupValueSentinel .INSTANCE ) == null ;
3857
3857
}
3858
3858
3859
- private void shutdown () throws InterruptedException {
3860
- if (!executorService .isShutdown () && ExecutorUtil .uninterruptibleShutdown (executorService )) {
3861
- throw new InterruptedException ();
3859
+ private void shutdown () {
3860
+ if (!executorService .isShutdown () && ExecutorUtil .interruptibleShutdown (executorService )) {
3861
+ // Preserve the interrupt status.
3862
+ Thread .currentThread ().interrupt ();
3862
3863
}
3863
3864
}
3864
3865
You can’t perform that action at this time.
0 commit comments