jzhang1018 opened a new issue, #13186:
URL: https://github.com/apache/dubbo/issues/13186

   Does this method have thread safety issues?
   
    private Holder<Object> getOrCreateHolder(String name) {
           Holder<Object> holder = cachedInstances.get(name);
           if (holder == null) {
               cachedInstances.putIfAbsent(name, new Holder<>());
               holder = cachedInstances.get(name);
           }
           return holder;
       }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to