tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1103788 - /tomcat/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java
Date Mon, 16 May 2011 16:39:43 GMT
Author: markt
Date: Mon May 16 16:39:42 2011
New Revision: 1103788

URL: http://svn.apache.org/viewvc?rev=1103788&view=rev
Log:
SHARED_SELECTOR is used with double checked locking so it needs to be volatile

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java?rev=1103788&r1=1103787&r2=1103788&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioSelectorPool.java Mon May 16 16:39:42
2011
@@ -50,7 +50,7 @@ public class NioSelectorPool {
     
     protected NioBlockingSelector blockingSelector;
     
-    protected Selector SHARED_SELECTOR;
+    protected volatile Selector SHARED_SELECTOR;
     
     protected int maxSelectors = 200;
     protected long sharedSelectorTimeout = 30000;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message