aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-06-01 23:23:16 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-06-02 15:26:58 +0200
commit97fc108aeb0cf7e5ad5ce6ba67273bb49faa6333 (patch)
treef734a9ef4912b6e7d4be3a74581ee72582d7e939 /src/test/java/com
parent484e9750f4223a5750d62d9fa1844019147497d2 (diff)
Fix a bug in ParallelVisitor which prevents visitation task from being interrupted eagerly
The original code swallows the InterruptedException, sets the interrupt bit and stops new tasks from being submitted. However it does not actively send an interrupt signal to all running and pending tasks already in the pool. It is partly due to the misleading syntax of awaitTermination, which actually quitely waits for all tasks to exit even if interruptWorkers is set to true. Both errors are fixed in this change. RELNOTES: None PiperOrigin-RevId: 157762029
Diffstat (limited to 'src/test/java/com')
0 files changed, 0 insertions, 0 deletions