[concurrency-interest] Reordering and Immutability

Stanimir Simeonoff stanimir at riflexo.com
Wed Feb 6 14:21:01 EST 2013


> Then it may also return a non-null value that is not even a valid
> reference,
>
It will be a valid reference. It may not properly initialized instance but
still a valid reference.


> and certainly doesn't necessarily reference a valid Resource instance.
>
> There is no definition of a valid Resource coming from the snippet but the
Resource c-tor can be invoked multiple times given the lack of
synchronization/locking.


Stanimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20130206/c4d490aa/attachment.html>


More information about the Concurrency-interest mailing list