ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/FutureTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/FutureTask.java (file contents):
Revision 1.64 by jsr166, Fri Jun 17 20:46:43 2011 UTC vs.
Revision 1.65 by jsr166, Fri Jun 17 20:54:00 2011 UTC

# 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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines