RFR: 8253179: Replace LinkedList Impl in net.http.Http2Connection

Daniel Fuchs dfuchs at openjdk.java.net
Thu Oct 1 10:58:49 UTC 2020


On Thu, 1 Oct 2020 10:38:43 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

>> Taking a look at this presently
>
> Although Aleksey's proposal does not change the behavior, it raises a question (to be explored separately): can a
> stream be added to that map while `Http2Connection.shutdown` is in progress? If this is the case, then the method is
> racy.

Even if that happened , it should not matter as the connection will be (or is) closed anyway. I don't believe that's
the kind of scenario that the copy was trying to prevent. Closing a stream will definitely remove it from the map
though, so my guess that is where the CME would happen if no precaution was taken.

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

PR: https://git.openjdk.java.net/jdk/pull/431


More information about the net-dev mailing list