# | 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 667 | Line 667 | public class StampedLock implements java | |
667 | else if (m == WBIT) { | |
668 | if (a != m) | |
669 | break; | |
670 | < | next = state = s + (WBIT + RUNIT); |
670 | > | state = next = s + (WBIT + RUNIT); |
671 | readerPrefSignal(); | |
672 | return next; | |
673 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |