tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r883203 - /tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java
Date Mon, 23 Nov 2009 00:37:36 GMT
Author: markt
Date: Mon Nov 23 00:37:36 2009
New Revision: 883203

URL: http://svn.apache.org/viewvc?rev=883203&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=482
Use volatile since field is accessed by multiple threads

Modified:
    tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java

Modified: tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java?rev=883203&r1=883202&r2=883203&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java Mon Nov 23 00:37:36 2009
@@ -278,7 +278,7 @@
     /**
      * The background thread completion semaphore.
      */
-    private boolean threadDone = false;
+    private volatile boolean threadDone = false;
 
 
     // ------------------------------------------------------------- Properties



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message