From 1185bcf58d13e2e7d50df596764d333e633de8f0 Mon Sep 17 00:00:00 2001 From: kkolinko Date: Mon, 2 Nov 2009 10:30:49 +0000 Subject: [PATCH] Mark JspCompilationContext#removed as volatile, 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/jasper/JspCompilationContext.java b/java/org/apache/jasper/JspCompilationContext.java index 5326c0ebb..bc5e948fd 100644 --- a/java/org/apache/jasper/JspCompilationContext.java +++ b/java/org/apache/jasper/JspCompilationContext.java @@ -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; -- 2.11.0