[concurrency-interest] dealing with people thatquestionvisibility problems

David Holmes dcholmes at optusnet.com.au
Thu Feb 22 18:12:03 EST 2007


Hans Boehm wrote:
> You get atomicity only if the fields never acquire any intermediate
> values, and particularly never if the fields have type long or double.

That is true. But in the current context that expectation had to already
exist ie they used an unsynchronized accessor because the value would always
be valid and so didn't need to be "synchronized". They just neglected the
visibility aspect.

Cheers,
David



More information about the Concurrency-interest mailing list