mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8222930: ConcurrentSkipListMap.clone() shares size variable between original and clone
Co-authored-by: Martin Buchholz <martinrb@google.com> Reviewed-by: martin, smarks
This commit is contained in:
parent
7d4520c109
commit
d97dd4d554
2 changed files with 27 additions and 0 deletions
|
@ -1129,6 +1129,7 @@ public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
|
|||
clone.entrySet = null;
|
||||
clone.values = null;
|
||||
clone.descendingMap = null;
|
||||
clone.adder = null;
|
||||
clone.buildFromSorted(this);
|
||||
return clone;
|
||||
} catch (CloneNotSupportedException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue