Switch to volatile for status flag used by multiple
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 11 Sep 2009 20:51:00 +0000 (20:51 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 11 Sep 2009 20:51:00 +0000 (20:51 +0000)
commitaa969e556dcf679a49fbc964648665aae18a1fa6
treeafb0ce8769f7599c88188557c2f7b05b5f61f8bd
parente6e066734517933d23b1f3e36997b6c89268a6f8
Switch to volatile for status flag used by multiple
threads during cluster context startup.

Without volatile problems have been observed, where the
change by one thread was actually not seen by the other
thread.

Performance implications are neglectable, because the
variable is only used during context startup.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814024 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/ha/session/DeltaManager.java