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

Comparing jsr166/src/jsr166e/StampedLock.java (file contents):
Revision 1.15 by jsr166, Sun Oct 14 16:42:07 2012 UTC vs.
Revision 1.17 by jsr166, Mon Oct 15 04:32:41 2012 UTC

# Line 310 | Line 310 | public class StampedLock implements java
310      private transient int readerOverflow;
311  
312      /**
313 <     * Creates a new lock initially in unlocked state.
313 >     * Creates a new lock, initially in unlocked state.
314       */
315      public StampedLock() {
316          state = ORIGIN;
# Line 701 | Line 701 | public class StampedLock implements java
701              else if (m == WBIT) {
702                  if (a != m)
703                      break;
704 <                next = state = (s += WBIT) == 0L ? ORIGIN : s;
704 >                state = next = (s += WBIT) == 0L ? ORIGIN : s;
705                  readerPrefSignal();
706                  return next;
707              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines