- Fix possible cast error in
update
andputIfAbsent
.MapBase
usescontainsKey
which is unreliable and creates data
race (due to GC) between check and read. - Optimize
length
.MapBase
useskeys.length
which causes iteration and creation of
strong snapshot.