[cvs] / jsr166 / src / test / tck / AtomicIntegerFieldUpdaterTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27, Wed Dec 31 19:05:42 2014 UTC revision 1.28, Wed Dec 31 19:21:20 2014 UTC
# Line 133  Line 133 
133          AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> a;          AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> a;
134          a = updaterFor("x");          a = updaterFor("x");
135          x = 1;          x = 1;
136          while (!a.weakCompareAndSet(this, 1, 2));          do {} while (!a.weakCompareAndSet(this, 1, 2));
137          while (!a.weakCompareAndSet(this, 2, -4));          do {} while (!a.weakCompareAndSet(this, 2, -4));
138          assertEquals(-4, a.get(this));          assertEquals(-4, a.get(this));
139          while (!a.weakCompareAndSet(this, -4, 7));          do {} while (!a.weakCompareAndSet(this, -4, 7));
140          assertEquals(7, a.get(this));          assertEquals(7, a.get(this));
141      }      }
142    

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8