Author: markt
Date: Thu Jan 15 14:56:48 2015
New Revision: 1652121
URL: http://svn.apache.org/r1652121
Log:
No need for volatile here.
Modified:
tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1652121&r1=1652120&r2=1652121&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Thu Jan 15
14:56:48 2015
@@ -727,7 +727,7 @@ public class Nio2Endpoint extends Abstra
private final CompletionHandler<Integer,
SocketWrapperBase<Nio2Channel>> readCompletionHandler;
private final Semaphore readPending = new Semaphore(1);
- private volatile boolean readInterest = true;
+ private boolean readInterest = true; // Guarded by
readCompletionHandler
private final CompletionHandler<Integer, ByteBuffer>
writeCompletionHandler;
private final CompletionHandler<Long, ByteBuffer[]>
gatheringWriteCompletionHandler;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]