tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r792862 - /tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java
Date Fri, 10 Jul 2009 10:10:19 GMT
Author: markt
Date: Fri Jul 10 10:10:18 2009
New Revision: 792862

URL: http://svn.apache.org/viewvc?rev=792862&view=rev
Log:
Needs to be volatile as it is used in double checked locking

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

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java?rev=792862&r1=792861&r2=792862&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java Fri Jul 10 10:10:18 2009
@@ -135,7 +135,7 @@
     /**
      * The (single) initialized instance of this servlet.
      */
-    protected Servlet instance = null;
+    protected volatile Servlet instance = null;
 
 
     /**



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


Mime
View raw message