130 |
|
code = (h == 0) ? 1 : h; |
131 |
|
} |
132 |
|
} |
133 |
< |
|
133 |
> |
|
134 |
|
/** |
135 |
|
* The corresponding ThreadLocal class |
136 |
|
*/ |
233 |
|
} |
234 |
|
else if (!wasUncontended) // CAS already known to fail |
235 |
|
wasUncontended = true; // Continue after rehash |
236 |
< |
else if (UNSAFE.compareAndSwapLong(a, valueOffset, |
236 |
> |
else if (UNSAFE.compareAndSwapLong(a, valueOffset, |
237 |
|
v = a.value, v + x)) |
238 |
|
break; |
239 |
|
else if (n >= NCPU || cells != as) |
275 |
|
if (init) |
276 |
|
break; |
277 |
|
} |
278 |
< |
else if (UNSAFE.compareAndSwapLong(this, baseOffset, |
278 |
> |
else if (UNSAFE.compareAndSwapLong(this, baseOffset, |
279 |
|
v = base, v + x)) |
280 |
|
break; // Fall back on using base |
281 |
|
} |