[Backport] 8322149: ConcurrentHashMap smarter presizing for copy constructor and putAll
Summary: ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.
[Backport] 8322149: ConcurrentHashMap smarter presizing for copy constructor and putAll
Summary: ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.
Testing: CI testing
Reviewers: lingjun-cg, yuleil
Issue: https://github.com/dragonwell-project/dragonwell21/issues/101