tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: bug in TC6 ContainerBase class?
Date Fri, 21 Jan 2011 17:38:05 GMT
Chuck,

On 1/21/2011 10:02 AM, Caldarale, Charles R wrote:
>> From: sebb [mailto:sebbaz@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


Mime
View raw message