https://issues.apache.org/bugzilla/show_bug.cgi?id=49972
--- Comment #4 from Kostya Serebryany <konstantin.s.serebry...@gmail.com> 2010-09-22 10:53:58 EDT --- >> The simple fix is to just reverse these two lines: I afraid, it won't work. The compiler is free to reverse these lines back. (maybe not in this particular case, but certainly in general). >> the Java language spec requires operations to be visible to other threads in >> program order Does it? (I am a C++ guy, could you point me to the place in Java docs where this is stated?) >From what I can see, the order is guaranteed only in the presence of happens-before relation (volatile write followed by volatile read or a mutex unlock followed by a mutex lock). -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org