Github user wy96f commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1895#discussion_r170562278
--- Diff:
artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/ConcurrentLongHashMap.java
---
@@ -460,7 +468,7 @@ private void rehash() {
keys = newKeys;
values = newValues;
usedBuckets = size;
- capacity = newCapacity;
+ CAPACITY_UPDATER.lazySet(this, newCapacity);
resizeThreshold = (int) (capacity * MapFillFactor);
--- End diff --
should be resizeThreshold = (int) (newCapacity * MapFillFactor)
---