You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/06/03 15:18:32 UTC

svn commit: r1683322 - /tomcat/trunk/java/org/apache/coyote/http2/Stream.java

Author: markt
Date: Wed Jun  3 13:18:32 2015
New Revision: 1683322

URL: http://svn.apache.org/r1683322
Log:
inBuffer needs to be volatile for double checked locking to work.

Modified:
    tomcat/trunk/java/org/apache/coyote/http2/Stream.java

Modified: tomcat/trunk/java/org/apache/coyote/http2/Stream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Stream.java?rev=1683322&r1=1683321&r2=1683322&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Stream.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Stream.java Wed Jun  3 13:18:32 2015
@@ -367,7 +367,7 @@ public class Stream extends AbstractStre
         private byte[] outBuffer;
         // This buffer is the destination for incoming data. It is normally is
         // 'write mode'.
-        private ByteBuffer inBuffer;
+        private volatile ByteBuffer inBuffer;
 
         private boolean endOfStream = false;
 



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