mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8205399: Set node color on pinned HashMap.TreeNode deletion
Reviewed-by: martin
This commit is contained in:
parent
647c7d5344
commit
51d0a9e122
2 changed files with 176 additions and 1 deletions
|
@ -2145,7 +2145,7 @@ public class HashMap<K,V> extends AbstractMap<K,V>
|
|||
if (replacement != p) {
|
||||
TreeNode<K,V> pp = replacement.parent = p.parent;
|
||||
if (pp == null)
|
||||
root = replacement;
|
||||
(root = replacement).red = false;
|
||||
else if (p == pp.left)
|
||||
pp.left = replacement;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue