提交 bb96794e 编写于 作者: D dl

8023104: ConcurrentHashMap typo

Reviewed-by: chegar, mduigou
上级 ba002a3d
...@@ -2785,7 +2785,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V> ...@@ -2785,7 +2785,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
return; return;
} }
} }
else if ((s | WAITER) == 0) { else if ((s & WAITER) == 0) {
if (U.compareAndSwapInt(this, LOCKSTATE, s, s | WAITER)) { if (U.compareAndSwapInt(this, LOCKSTATE, s, s | WAITER)) {
waiting = true; waiting = true;
waiter = Thread.currentThread(); waiter = Thread.currentThread();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册