You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/06/06 14:46:34 UTC

[GitHub] sangjian opened a new issue #1894: ExtensionLoader中的loadClass方法这么写不会有并发问题吗?

sangjian opened a new issue #1894: ExtensionLoader中的loadClass方法这么写不会有并发问题吗?
URL: https://github.com/apache/incubator-dubbo/issues/1894
 
 
   ```java
   else if (isWrapperClass(clazz)) {
       Set<Class<?>> wrappers = cachedWrapperClasses;
       if (wrappers == null) {
           cachedWrapperClasses = new ConcurrentHashSet<Class<?>>();
           wrappers = cachedWrapperClasses;
       }
       wrappers.add(clazz);
   }
   ```
   cachedWrapperClasses有没有可能会被赋值两次,导致第一次的clazz没有加到cachedWrapperClasses中?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org