From 2296cd186c1fa56def07a7ca8e429355d39910b2 Mon Sep 17 00:00:00 2001 From: fhanik Date: Wed, 9 May 2007 14:18:25 +0000 Subject: [PATCH] volatile should ensure double locking to work properly 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/catalina/tribes/io/BufferPool.java b/java/org/apache/catalina/tribes/io/BufferPool.java index 39f6e4480..db9a1cb46 100644 --- a/java/org/apache/catalina/tribes/io/BufferPool.java +++ b/java/org/apache/catalina/tribes/io/BufferPool.java @@ -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) { -- 2.11.0