RFR: 8223783: sun/net/www/http/HttpClient/MultiThreadTest.java sometimes detect threads+1 connections [v4]
Daniel Fuchs
dfuchs at openjdk.org
Wed Nov 23 14:58:09 UTC 2022
On Wed, 23 Nov 2022 11:41:40 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> test/jdk/sun/net/www/http/HttpClient/MultiThreadTest.java line 183:
>>
>>> 181: try {
>>> 182: Object lock = MultiThreadTest.getLock();
>>> 183: List<MultiThreadTest> tests = new ArrayList<>();
>>
>> this list is not used
>
> Good catch. That's a left over from some additional experiment.
I decided to follow up on your (offline) suggestion and actually join the client threads (later). I have also added a countdown latch to make the wait cleaner. As a result the END atomic long is no longer needed and a simple local variable can be used instead.
-------------
PR: https://git.openjdk.org/jdk/pull/11268
More information about the net-dev
mailing list