You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/20 10:35:38 UTC

[GitHub] [pulsar] lhotari edited a comment on pull request #10280: Fix thread safety issue in ManagedLedgerImpl

lhotari edited a comment on pull request #10280:
URL: https://github.com/apache/pulsar/pull/10280#issuecomment-823164231


   I did some more research:
   
   There's a blog post from 2014 "All accesses are atomic" https://shipilev.net/blog/2014/all-accesses-are-atomic/ .
   
   There is also [JEP 188: Java Memory Model Update](http://openjdk.java.net/jeps/188) and an InfoQ article ["The OpenJDK Revised Java Memory Model"](https://www.infoq.com/articles/The-OpenJDK9-Revised-Java-Memory-Model/#lowerFullwidthVCR:~:text=JMM9%20%2D%20Read%20And%20Write%20Atomicity%20Problem%20And%20The%20Word%2DTearing%20Problem.). It seems that the Java Memory Model has been revisited for JDK9+, called JMM9 . It's a bit hard to find the consistent documentation since the JLS for JDK 16 hasn't been updated with any changes [in 17.7 of JLS](https://docs.oracle.com/javase/specs/jls/se16/html/jls-17.html#jls-17.7). 


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