[concurrency-interest] Ordering Question

Aleksey Shipilev aleksey.shipilev at oracle.com
Thu Jul 21 05:21:01 EDT 2016


On 07/21/2016 09:32 AM, thurstonn wrote:
> Is it necessary that the two int instance variables (a, b) are declared
> volatile in those tests that only access them through their respective
> VarHandles?

No, it's not necessary.

-Aleksey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20160721/c9eb1783/attachment.sig>


More information about the Concurrency-interest mailing list