Chuck, On 1/21/2011 10:02 AM, Caldarale, Charles R wrote: >> From: sebb [mailto:seb...@gmail.com] Subject: Re: bug in TC6 >> ContainerBase class? > >> There is no requirement for the compiler to reload variables >> unless the variable is volatile, or there is a shared lock between >> threads. > > Correct - with one caveat: if the compiler cannot prove there is no > synchronization, it must assume that there is. Also, the method > calls can have side effects not discernible by the compiler, > including updating of fields not specified in the argument list.
Are you saying that effectively most method calls have pre- and post- memory barriers? -chris
signature.asc
Description: OpenPGP digital signature