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

Comparing jsr166/src/jsr166e/LongMaxUpdater.java (file contents):
Revision 1.9 by dl, Sun May 4 22:38:19 2014 UTC vs.
Revision 1.11 by jsr166, Mon May 5 20:20:15 2014 UTC

# Line 5 | Line 5
5   */
6  
7   package jsr166e;
8 +
9 + import java.io.IOException;
10 + import java.io.ObjectInputStream;
11 + import java.io.ObjectOutputStream;
12   import java.io.Serializable;
13  
14   /**
# Line 52 | Line 56 | public class LongMaxUpdater extends Stri
56          if ((as = cells) != null ||
57              (b = base) < x && !casBase(b, x)) {
58              boolean uncontended = true;
59 <            if ((hc = threadHashCode.get()) == null ||
59 >            if ((hc = threadHashCode.get()) == null ||
60                  as == null || (n = as.length) < 1 ||
61                  (a = as[(n - 1) & hc[0]]) == null ||
62                  ((v = a.value) < x && !(uncontended = a.cas(v, x))))
# Line 166 | Line 170 | public class LongMaxUpdater extends Stri
170          return (double)max();
171      }
172  
173 <    private void writeObject(java.io.ObjectOutputStream s)
170 <        throws java.io.IOException {
173 >    private void writeObject(ObjectOutputStream s) throws IOException {
174          s.defaultWriteObject();
175          s.writeLong(max());
176      }
177  
178 <    private void readObject(java.io.ObjectInputStream s)
179 <        throws java.io.IOException, ClassNotFoundException {
178 >    private void readObject(ObjectInputStream s)
179 >            throws IOException, ClassNotFoundException {
180          s.defaultReadObject();
181          busy = 0;
182          cells = null;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines