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.88 by jsr166, Sun Jun 19 07:57:06 2011 UTC vs.
Revision 1.89 by jsr166, Sun Jun 19 15:43:14 2011 UTC

# Line 287 | Line 287 | public class FutureTask<V> implements Ru
287              while ((s = state) == INTERRUPTING)
288                  Thread.yield(); // wait out pending interrupt
289          }
290 <        assert state == INTERRUPTED;
290 >        // assert state == INTERRUPTED;
291          // Clear any interrupt we may have received.
292          Thread.interrupted();   // clear interrupt from cancel(true)
293      }
# Line 308 | Line 308 | public class FutureTask<V> implements Ru
308       * nulls out callable.
309       */
310      private void finishCompletion() {
311 <        assert state > NEW;
311 >        // assert state > NEW;
312          for (WaitNode q; (q = waiters) != null;) {
313              if (UNSAFE.compareAndSwapObject(this, waitersOffset, q, null)) {
314                  for (;;) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines