[concurrency-interest] 8145539: (coll) AbstractMap.keySet and .values should not be volatile

thurstonn thurston at nomagicsoftware.com
Mon Apr 25 19:29:38 EDT 2016


Just curious,

has anyone actually observed a real JVM returning null in the original, racy
code?
I realize the JMM allows it, but I'd be surprised that a JVM would reorder
reads of the *same* memory location





--
View this message in context: http://jsr166-concurrency.10961.n7.nabble.com/8145539-coll-AbstractMap-keySet-and-values-should-not-be-volatile-tp13382p13403.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.


More information about the Concurrency-interest mailing list