8023104: ConcurrentHashMap typo

Reviewed-by: chegar, mduigou
This commit is contained in:
Doug Lea 2013-08-15 15:04:59 +01:00
parent ad2505a669
commit fc8b2309b8

View File

@ -2785,7 +2785,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
return;
}
}
else if ((s | WAITER) == 0) {
else if ((s & WAITER) == 0) {
if (U.compareAndSwapInt(this, LOCKSTATE, s, s | WAITER)) {
waiting = true;
waiter = Thread.currentThread();