2318 |
|
break; |
2319 |
|
else if (tab == table) { |
2320 |
|
int rs = resizeStamp(n); |
2321 |
< |
if (sc < 0) { |
2322 |
< |
Node<K,V>[] nt; |
2323 |
< |
if ((sc >>> RESIZE_STAMP_SHIFT) != rs || sc == rs + 1 || |
2324 |
< |
sc == rs + MAX_RESIZERS || (nt = nextTable) == null || |
2325 |
< |
transferIndex <= 0) |
2326 |
< |
break; |
2327 |
< |
if (U.compareAndSwapInt(this, SIZECTL, sc, sc + 1)) |
2328 |
< |
transfer(tab, nt); |
2329 |
< |
} |
2330 |
< |
else if (U.compareAndSwapInt(this, SIZECTL, sc, |
2331 |
< |
(rs << RESIZE_STAMP_SHIFT) + 2)) |
2321 |
> |
if (U.compareAndSwapInt(this, SIZECTL, sc, |
2322 |
> |
(rs << RESIZE_STAMP_SHIFT) + 2)) |
2323 |
|
transfer(tab, null); |
2324 |
|
} |
2325 |
|
} |