ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.107 by jsr166, Fri Apr 22 18:51:40 2011 UTC vs.
Revision 1.108 by jsr166, Fri Apr 22 19:06:43 2011 UTC

# Line 950 | Line 950 | public class ConcurrentHashMap<K, V> ext
950              throw new NullPointerException();
951          final Segment<K,V>[] segments = this.segments;
952          boolean found = false;
953 <        long last = 0;
953 >        long last = 0L;   // previous sum
954          int retries = -1;
955          try {
956              outer: for (;;) {
# Line 958 | Line 958 | public class ConcurrentHashMap<K, V> ext
958                      for (int j = 0; j < segments.length; ++j)
959                          ensureSegment(j).lock(); // force creation
960                  }
961 <                int sum = 0;
961 >                long sum = 0L;
962                  for (int j = 0; j < segments.length; ++j) {
963                      HashEntry<K,V>[] tab;
964                      Segment<K,V> seg = segmentAt(segments, j);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines