You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "kang-hl (via GitHub)" <gi...@apache.org> on 2023/03/08 10:15:02 UTC

[GitHub] [dubbo] kang-hl opened a new issue, #11768: 关于ReferenceConfig的get()方法调用init()方法的疑问

kang-hl opened a new issue, #11768:
URL: https://github.com/apache/dubbo/issues/11768

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   <!-- For all design discussions please continue. -->
   init()方法已经被synchronized关键字所修饰,get()方法调用init()方法所进行的同步操作是否多余?


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [dubbo] MieAh commented on issue #11768: 关于ReferenceConfig的get()方法调用init()方法的疑问

Posted by "MieAh (via GitHub)" <gi...@apache.org>.
MieAh commented on issue #11768:
URL: https://github.com/apache/dubbo/issues/11768#issuecomment-1459990958

   但DCL是必要的,避免多次初始化


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] 关于ReferenceConfig的get()方法调用init()方法的疑问 [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #11768: 关于ReferenceConfig的get()方法调用init()方法的疑问
URL: https://github.com/apache/dubbo/issues/11768


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [dubbo] MieAh commented on issue #11768: 关于ReferenceConfig的get()方法调用init()方法的疑问

Posted by "MieAh (via GitHub)" <gi...@apache.org>.
MieAh commented on issue #11768:
URL: https://github.com/apache/dubbo/issues/11768#issuecomment-1459988627

   这确实会出现两次同步操作,在init上加synchornized是没必要的


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [dubbo] kang-hl commented on issue #11768: 关于ReferenceConfig的get()方法调用init()方法的疑问

Posted by "kang-hl (via GitHub)" <gi...@apache.org>.
kang-hl commented on issue #11768:
URL: https://github.com/apache/dubbo/issues/11768#issuecomment-1460035501

   > 但DCL是必要的,避免多次初始化
   
   保留init上的synchornized,删除DCL,不会多次初始化吧


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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