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

Comparing jsr166/src/jsr166e/ConcurrentHashMapV8.java (file contents):
Revision 1.100 by jsr166, Mon Feb 18 03:15:10 2013 UTC vs.
Revision 1.101 by jsr166, Tue Jun 18 17:57:21 2013 UTC

# Line 6813 | Line 6813 | public class ConcurrentHashMapV8<K,V>
6813              Class<?> ck = CounterCell.class;
6814              CELLVALUE = U.objectFieldOffset
6815                  (ck.getDeclaredField("value"));
6816 <            Class<?> sc = Node[].class;
6817 <            ABASE = U.arrayBaseOffset(sc);
6818 <            int scale = U.arrayIndexScale(sc);
6816 >            Class<?> ak = Node[].class;
6817 >            ABASE = U.arrayBaseOffset(ak);
6818 >            int scale = U.arrayIndexScale(ak);
6819              if ((scale & (scale - 1)) != 0)
6820                  throw new Error("data type scale not a power of two");
6821              ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines