This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 95b65e0603f4bbcc413cdf621fdbffbd6ba2def2 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon May 13 09:38:35 2019 +0100 Update comments --- java/org/apache/coyote/http2/Http2UpgradeHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java b/java/org/apache/coyote/http2/Http2UpgradeHandler.java index 3c8d4e4..fdc2859 100644 --- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java +++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java @@ -748,8 +748,8 @@ class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH int reserveWindowSize(Stream stream, int reservation, boolean block) throws IOException { - // Need to be holding the stream lock so releaseBacklog() can't notify - // this thread until after this thread enters wait() + // Need to be holding the connection allocation lock so releaseBacklog() + // can't notify this thread until after this thread enters wait() int allocation = 0; Object connectionAllocationLock = stream.getConnectionAllocationLock(); synchronized (connectionAllocationLock) { @@ -848,7 +848,7 @@ class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH - @SuppressWarnings("sync-override") // notifyAll() needs to be outside sync + @SuppressWarnings("sync-override") // notify() needs to be outside sync // to avoid deadlock @Override protected void incrementWindowSize(int increment) throws Http2Exception { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org