changeset 9641:b07b19182e40

8023104: ConcurrentHashMap typo Reviewed-by: chegar, mduigou
author dl
date Thu, 15 Aug 2013 15:04:59 +0100
parents 3223342fb76e
children e7137695dce3
files src/share/classes/java/util/concurrent/ConcurrentHashMap.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/concurrent/ConcurrentHashMap.java	Thu Aug 15 15:01:37 2013 +0100
+++ b/src/share/classes/java/util/concurrent/ConcurrentHashMap.java	Thu Aug 15 15:04:59 2013 +0100
@@ -2785,7 +2785,7 @@
                         return;
                     }
                 }
-                else if ((s | WAITER) == 0) {
+                else if ((s & WAITER) == 0) {
                     if (U.compareAndSwapInt(this, LOCKSTATE, s, s | WAITER)) {
                         waiting = true;
                         waiter = Thread.currentThread();