apache/spark — pull request #675 by andrewor14 (2014-05-07 03:38:10+00:00)
Title: [SPARK-1745] Move interrupted flag from TaskContext constructor

It makes little sense to start a TaskContext that is interrupted. Indeed, I searched for all use cases of it and didn't find a single instance in which interrupted is true on construction.

(This was inspired by reviewing #640, which adds an additional `@volatile var completed` that is similar)