On Thu, 1 Oct 2020 10:38:43 GMT, Pavel Rappo <pra...@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

Reply via email to