Integrated: 8289385: Cleanup redundant synchronization in Http2ClientImpl

Andrey Turbanov aturbanov at openjdk.org
Sat Jul 2 15:29:33 UTC 2022


On Tue, 28 Jun 2022 18:44:38 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> Http2ClientImpl.stopping and Http2ClientImpl.failures are always accessed under synchronized(this).
> So we can remove 'volatile' modifier from 'stopping'. And remove 'synchronizedSet' wrapper from 'failures'

This pull request has now been integrated.

Changeset: dee5121b
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/dee5121bd4b079abb28337395be2d5dd8bbf2f11
Stats:     6 lines in 1 file changed: 3 ins; 1 del; 2 mod

8289385: Cleanup redundant synchronization in Http2ClientImpl

Reviewed-by: jpai, dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/9311


More information about the net-dev mailing list