ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/BinaryAsyncAction.java
(Generate patch)

Comparing jsr166/src/test/loops/BinaryAsyncAction.java (file contents):
Revision 1.18 by dl, Sat Sep 12 19:16:16 2015 UTC vs.
Revision 1.19 by jsr166, Sat Sep 12 19:29:06 2015 UTC

# Line 57 | Line 57 | import java.util.concurrent.atomic.*;
57   * </pre>
58   */
59   public abstract class BinaryAsyncAction extends ForkJoinTask<Void> {
60 <    private volatile int controlState;  
61 <    
62 <    static final AtomicIntegerFieldUpdater<BinaryAsyncAction> controlStateUpdater =      
60 >    private volatile int controlState;
61 >
62 >    static final AtomicIntegerFieldUpdater<BinaryAsyncAction> controlStateUpdater =
63          AtomicIntegerFieldUpdater.newUpdater(BinaryAsyncAction.class, "controlState");
64 <    
64 >
65      /**
66       * Parent to propagate completion; nulled after completion to
67       * avoid retaining entire tree as garbage

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines