tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1847469 - /tomcat/trunk/java/org/apache/coyote/http2/Stream.java
Date Mon, 26 Nov 2018 13:48:02 GMT
Author: markt
Date: Mon Nov 26 13:48:02 2018
New Revision: 1847469

URL: http://svn.apache.org/viewvc?rev=1847469&view=rev
Log:
No need for streamReservation to be volatile. It is used only inside a single synchronised
method.

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=1847469&r1=1847468&r2=1847469&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Stream.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Stream.java Mon Nov 26 13:48:02 2018
@@ -718,7 +718,7 @@ class Stream extends AbstractStream impl
         private final ByteBuffer buffer = ByteBuffer.allocate(8 * 1024);
         private final WriteBuffer writeBuffer = new WriteBuffer(32 * 1024);
         private volatile long written = 0;
-        private volatile int streamReservation = 0;
+        private int streamReservation = 0;
         private volatile boolean closed = false;
         private volatile boolean endOfStreamSent = false;
 



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


Mime
View raw message