Github user franz1981 commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1851#discussion_r166307381
--- Diff:
artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/ConcurrentLongHashMap.java
---
@@ -457,10 +457,10 @@ private void rehash() {
}
}
- capacity = newCapacity;
keys = newKeys;
values = newValues;
usedBuckets = size;
+ capacity = newCapacity;
--- End diff --
Please check if is possible to use a lazySet too (maybe with an
`AtomicFieldUpdater` or similar) to write release the keys/values in order to
avoid a full barrier
---