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.314 by dl, Fri Oct 5 19:01:28 2018 UTC vs.
Revision 1.315 by dl, Wed Nov 28 23:52:49 2018 UTC

# Line 2307 | Line 2307 | public class ConcurrentHashMap<K,V> exte
2307                     (n = tab.length) < MAXIMUM_CAPACITY) {
2308                  int rs = resizeStamp(n);
2309                  if (sc < 0) {
2310 <                    if ((sc >>> RESIZE_STAMP_SHIFT) != rs || sc == rs + 1 ||
2311 <                        sc == rs + MAX_RESIZERS || (nt = nextTable) == null ||
2312 <                        transferIndex <= 0)
2310 >                    if ((sc >>> RESIZE_STAMP_SHIFT) == rs + 1 ||
2311 >                        (sc >>> RESIZE_STAMP_SHIFT) == rs + MAX_RESIZERS ||
2312 >                        (nt = nextTable) == null || transferIndex <= 0)
2313                          break;
2314                      if (U.compareAndSetInt(this, SIZECTL, sc, sc + 1))
2315                          transfer(tab, nt);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines