You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/10/12 09:55:40 UTC

[GitHub] [royale-compiler] QiAnXinCodeSafe opened a new issue #160: Double-Checked Locking

QiAnXinCodeSafe opened a new issue #160:
URL: https://github.com/apache/royale-compiler/issues/160


   https://github.com/apache/royale-compiler/blob/6f75df78d08d3c4a7f81a8d25d96b978972ee480/compiler/src/main/java/org/apache/royale/compiler/internal/scopes/ASScopeCache.java#L224-L232
   
   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] [royale-compiler] QiAnXinCodeSafe commented on issue #160: Double-Checked Locking

Posted by GitBox <gi...@apache.org>.
QiAnXinCodeSafe commented on issue #160:
URL: https://github.com/apache/royale-compiler/issues/160#issuecomment-708957767


   > Hi, thanks for the information. Could you please let us know as a better way of doing it submitting a patch. We'll be glad to integrate any improvement.
   > thanks
   Modify the variable map with volatile.
   


----------------------------------------------------------------
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] [royale-compiler] carlosrovira commented on issue #160: Double-Checked Locking

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #160:
URL: https://github.com/apache/royale-compiler/issues/160#issuecomment-709229417


   Hi @QiAnXinCodeSafe, if you can submit a Pull Request it would be better and would make your collaborations and out testing more productive. Could you send as a PR for this issue?
   thanks


----------------------------------------------------------------
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] [royale-compiler] carlosrovira commented on issue #160: Double-Checked Locking

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #160:
URL: https://github.com/apache/royale-compiler/issues/160#issuecomment-707198149


   Hi, thanks for the information. Could you please let us know as a better way of doing it submitting a patch. We'll be glad to integrate any improvement.
   thanks


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