tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r831850 - /tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java
Date Mon, 02 Nov 2009 10:30:50 GMT
Author: kkolinko
Date: Mon Nov  2 10:30:49 2009
New Revision: 831850

URL: http://svn.apache.org/viewvc?rev=831850&view=rev
Log:
Mark JspCompilationContext#removed as volatile,
because JspCompilationContext#isRemoved() is called from JspServletWrapper#service,
and that access is not synchronized.

Modified:
    tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java

Modified: tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java?rev=831850&r1=831849&r2=831850&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java (original)
+++ tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java Mon Nov  2 10:30:49 2009
@@ -81,7 +81,7 @@
 
     protected JspRuntimeContext rctxt;
 
-    protected int removed = 0;
+    protected volatile int removed = 0;
 
     protected URLClassLoader jspLoader;
     protected URL baseUrl;



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


Mime
View raw message