tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1142104 - /tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java
Date Fri, 01 Jul 2011 21:50:14 GMT
Author: markt
Date: Fri Jul  1 21:50:14 2011
New Revision: 1142104

URL: http://svn.apache.org/viewvc?rev=1142104&view=rev
Log:
Read/write by multiple threads outside sync - needs to be volatile

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=1142104&r1=1142103&r2=1142104&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardWrapper.java Fri Jul  1 21:50:14 2011
@@ -204,7 +204,7 @@ public class StandardWrapper extends Con
     /**
      * Does this servlet implement the SingleThreadModel interface?
      */
-    protected boolean singleThreadModel = false;
+    protected volatile boolean singleThreadModel = false;
 
 
     /**



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


Mime
View raw message