> agree. > unnecessary lock. :) >i ignored that maxCapacity is volatile,and it is threadSafe without lock.and >size. size() with lock can assure memory visibility >[参考](https://stackoverflow.com/questions/12429818/does-explicit-lock-automatically-provide-memory-visibility).i > will fix it.
[ 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]
