You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/08/17 06:36:06 UTC

[GitHub] [skywalking] QiAnXinCodeSafe opened a new issue #5331: Double-Checked Locking

QiAnXinCodeSafe opened a new issue #5331:
URL: https://github.com/apache/skywalking/issues/5331


   https://github.com/apache/skywalking/blob/ed71efda52dd1cce31d53622ed5d3d8aa66e9c3d/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/AgentClassLoader.java#L75-L77
   
   Double-Checked Locking is widely cited and used as an efficient method for implementing lazy initialization in a multithreaded environment.
   Unfortunately, it will not work reliably in a platform independent way when implemented in Java, without additional synchronization.


----------------------------------------------------------------
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.

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



[GitHub] [skywalking] wu-sheng closed issue #5331: Double-Checked Locking

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5331:
URL: https://github.com/apache/skywalking/issues/5331


   


----------------------------------------------------------------
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.

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



[GitHub] [skywalking] wu-sheng commented on issue #5331: Double-Checked Locking

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5331:
URL: https://github.com/apache/skywalking/issues/5331#issuecomment-674693150


   What do your point of your question? I am confused. Java depends on the JVM and OS obviously, what tod you mean `not work reliably in a platform independent way`?


----------------------------------------------------------------
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.

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