Mark JspCompilationContext#removed as volatile,
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 2 Nov 2009 10:30:49 +0000 (10:30 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 2 Nov 2009 10:30:49 +0000 (10:30 +0000)
because JspCompilationContext#isRemoved() is called from JspServletWrapper#service,
and that access is not synchronized.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@831850 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/JspCompilationContext.java

index 5326c0e..bc5e948 100644 (file)
@@ -81,7 +81,7 @@ public class JspCompilationContext {
 
     protected JspRuntimeContext rctxt;
 
-    protected int removed = 0;
+    protected volatile int removed = 0;
 
     protected URLClassLoader jspLoader;
     protected URL baseUrl;