You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2007/05/09 16:18:26 UTC
svn commit: r536540 -
/tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/io/BufferPool.java
Author: fhanik
Date: Wed May 9 07:18:25 2007
New Revision: 536540
URL: http://svn.apache.org/viewvc?view=rev&rev=536540
Log:
volatile should ensure double locking to work properly
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/io/BufferPool.java
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/io/BufferPool.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/io/BufferPool.java?view=diff&rev=536540&r1=536539&r2=536540
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/io/BufferPool.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/io/BufferPool.java Wed May 9 07:18:25 2007
@@ -33,7 +33,7 @@
- protected static BufferPool instance = null;
+ protected static volatile BufferPool instance = null;
protected BufferPoolAPI pool = null;
private BufferPool(BufferPoolAPI pool) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org