RFR [13] 8217976: test/jdk/java/net/httpclient/websocket/WebSocketProxyTest.java fails intermittently
Chris Hegarty
chris.hegarty at oracle.com
Tue Jan 29 12:53:19 UTC 2019
> On 29 Jan 2019, at 12:31, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
>
> ...
> The best would be to use CopyOnWriteArrayList instead
> of synchronizedList(). Otherwise you'd still need to copy the list
> within a synchronize(connections) { } block to prevent CME.
Agreed. Should be good enough for test cleanup.
http://cr.openjdk.java.net/~chegar/8217976/webrev.01/
-Chris.
More information about the net-dev
mailing list