[concurrency-interest] safe publication ("initializing an object from static initializer")

Andy Nuss andrew_nuss at yahoo.com
Fri Jun 7 09:17:52 EDT 2013


Hi,

The quote from JCIP section 3.5.3, "initializing an object from static initializer", has me wondering in terms of non-64 bit static, but non-final, scalar and object variables initialized in an initializer directly, or indirectly thru a static function called by the initializer that sets such variable, what are the rules for publishing the change safely to other cores?

Are all changes to static variables published at the end of the static initialization of the class?  What does hotspot do, and what exactly does this JCIP reference mean?

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20130607/8533f26d/attachment.html>


More information about the Concurrency-interest mailing list