> why should add lock here? Just to keep the same style:original code add lock on method `size()`-this method just read variable in HashMap(`transient int size`).this method just read variable `maxCapacity`.
I think it's safe to remove lock,and that can improve the performance. [ Full content available at: https://github.com/apache/incubator-dubbo/pull/2627 ] This message was relayed via gitbox.apache.org for [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
