tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1666132 - /tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
Date Thu, 12 Mar 2015 11:02:44 GMT
Author: markt
Date: Thu Mar 12 11:02:44 2015
New Revision: 1666132

URL: http://svn.apache.org/r1666132
Log:
No need for volatile. All accesses are inside a sync.

Modified:
    tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=1666132&r1=1666131&r2=1666132&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original)
+++ tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Thu Mar 12 11:02:44
2015
@@ -2446,7 +2446,7 @@ public class AprEndpoint extends Abstrac
     private static class AprSocketWrapper extends SocketWrapper<Long> {
 
         private final Object closedLock = new Object();
-        private volatile boolean closed = false;
+        private boolean closed = false;
 
         // This field should only be used by Poller#run()
         private int pollerFlags = 0;



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


Mime
View raw message