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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org