RFR [12] 8211092: test/jdk/sun/net/www/http/HttpClient/MultiThreadTest.java fails intermittently when cleaning up

Chris Hegarty chris.hegarty at oracle.com
Fri Sep 28 09:41:18 UTC 2018


On 27/09/18 14:28, Daniel Fuchs wrote:
> Hi Chris,
> 
> Good finding!
> 
> I agree with the principle, but I think that strictly speaking
> it would be more correct if the server's workers ArrayList was
> changed into a ConcurrentLinkedQueue.
> 
> The main could then poll the queue & join until it's empty
> (or alternatively use forEach)

Good suggestion. Done.

http://cr.openjdk.java.net/~chegar/8211092.02/

-Chris.


More information about the net-dev mailing list