> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: bug in TC6 ContainerBase class?
> Are you saying that effectively most method calls have > pre- and post-memory barriers? Essentially yes - except in the presence of a JIT. Since a JIT can examine the called method and analyze its behavior and consequent side effects, it can eliminate or reorder writes or reads in both the caller and callee that the original compiler generated. So as a general rule, it's not safe to depend on that behavior in Java. In the specific case under discussion, the methods called by the looping run() method are too complex for any current JIT technology to fully analyze. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.