volatile should ensure double locking to work properly
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 May 2007 14:18:25 +0000 (14:18 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 May 2007 14:18:25 +0000 (14:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@536540 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/tribes/io/BufferPool.java

index 39f6e44..db9a1cb 100644 (file)
@@ -33,7 +33,7 @@ public class BufferPool {
 
 
 
-    protected static BufferPool instance = null;
+    protected static volatile BufferPool instance = null;
     protected BufferPoolAPI pool = null;
 
     private BufferPool(BufferPoolAPI pool) {