Francesco Nigro created ARTEMIS-1702:
----------------------------------------

             Summary: ConcurrentLongHashMap and ConcurrentLongHashSet should 
avoid volatile set cost on put
                 Key: ARTEMIS-1702
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1702
             Project: ActiveMQ Artemis
          Issue Type: Improvement
            Reporter: Francesco Nigro
            Assignee: Francesco Nigro


ConcurrentLongHashSet/HashMap are making use of unecessary volatile store of 
size/capacity for modifier methods. 

The current JVM implementation of volatile store for multicore x86 is making 
use of a StoreLoad barrier for this operation: the most expensive one.

These volatile stores could be replaced by plain stores/lazySet ones with no 
effects on the correctness of those methods.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to