mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-30 07:12:41 +00:00
8378354: Faulty assertion in checkInvariants method of ConcurrentHashMap
Reviewed-by: alanb, vklang
This commit is contained in:
parent
32a619715e
commit
b99d1f0a17
@ -3310,7 +3310,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
|
||||
return false;
|
||||
if (tr != null && (tr.parent != t || tr.hash < t.hash))
|
||||
return false;
|
||||
if (t.red && tl != null && tl.red && tr != null && tr.red)
|
||||
if (t.red && (tl != null && tl.red || tr != null && tr.red))
|
||||
return false;
|
||||
if (tl != null && !checkInvariants(tl))
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user