Needs to be volatile as it is used in double checked locking
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 10 Jul 2009 10:10:18 +0000 (10:10 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 10 Jul 2009 10:10:18 +0000 (10:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@792862 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardWrapper.java

index fe4d30d..1b363ec 100644 (file)
@@ -135,7 +135,7 @@ public class StandardWrapper
     /**
      * The (single) initialized instance of this servlet.
      */
-    protected Servlet instance = null;
+    protected volatile Servlet instance = null;
 
 
     /**