# | Line 232 | Line 232 | public class FutureTask<V> implements Ru | |
---|---|---|
232 | } | |
233 | ||
234 | public void run() { | |
235 | – | Thread r = Thread.currentThread(); |
235 | if (state == 0 && | |
236 | < | UNSAFE.compareAndSwapObject(this, runnerOffset, null, r)) { |
236 | > | UNSAFE.compareAndSwapObject(this, runnerOffset, |
237 | > | null, Thread.currentThread())) { |
238 | V result; | |
239 | try { | |
240 | result = callable.call(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |