[concurrency-interest] Question about "happens-before" and reordering

Jeremy Manson jmanson at cs.purdue.edu
Fri May 19 12:15:04 EDT 2006


Jeremy Manson wrote:

> 
> 2) The initialized field should probably be final (which would mean that 
> you could not put the "initialized = false" line in, but you probably 
> don't want that line there anyway, as the default value is false, and 
> moving the constructor around / adding more constructors will cause 
> confusion).  Otherwise, you could use reflection to set it.
> 

Whoops!  I didn't mean that last bit!  But it should probably be final 
anyway.

					Jeremy


More information about the Concurrency-interest mailing list