JDK 9 RFR of JDK-8035279: Clean up internal deprecations in BigInteger

Paul Sandoz paul.sandoz at oracle.com
Thu Feb 20 21:20:07 UTC 2014


On Feb 20, 2014, at 9:09 PM, David Holmes <david.holmes at oracle.com> wrote:
> In practice, because there are also final fields in these instances implementations will most likely perform a storestore barrier after construction and prior to setting the reference to the created object.

Yes, that is what i was banking on. 

That is how hotspot behaves, right? 

But, you are saying other VMs might not do so?

Paul.

> That would make non-volatile appear to work, but it would not be guaranteed to do so and the final-field "freeze" action only guarantees that unsafe publication will see the correct value of the final fields (and for final references anything reachable via that reference).
> 




More information about the core-libs-dev mailing list