Re: RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Daniel Fuchs
Looks good to me Rahul! best regards, -- daniel On 27/08/2020 19:14, Rahul Yadav wrote: Thank you all for the feedback. I have included feedback and updated webrev. Before : Benchmark  Mode  Cnt    Score    Error Units ThreadLocalURI.uriDecoderBaseline  avgt   25  55

Re: RFR 8133686: REOPEN JDK-8080659 : HttpURLConnection?s getHeaderFields method returns field values in reverse order

2020-08-27 Thread Daniel Fuchs
Hi Evan, Actually - I believe you are still missing a test that verifies the actual issue - that is: If a multi valued field is sent over the wire as a repeated list of headers - that is - if it is transmitted as: foo: foo1 foo: foo2 foo: foo3 then you need to verify that HttpURLConnection.get

Re: RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Alan Bateman
On 27/08/2020 19:14, Rahul Yadav wrote: Thank you all for the feedback. I have included feedback and updated webrev. Before : Benchmark  Mode  Cnt    Score    Error Units ThreadLocalURI.uriDecoderBaseline  avgt   25  556.315 ± 23.389 ns/op ThreadLocalURI.uriDecoderTest 

Re: RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Rahul Yadav
Thank you all for the feedback. I have included feedback and updated webrev. Before : Benchmark  Mode  Cnt    Score    Error Units ThreadLocalURI.uriDecoderBaseline  avgt   25  556.315 ± 23.389 ns/op ThreadLocalURI.uriDecoderTest  avgt   25  728.413 ± 19.833 ns/op Th

Re: 8245462: HttpClient send throws InterruptedException when interrupted but does not cancel request

2020-08-27 Thread Chris Hegarty
Daniel, > On 14 Aug 2020, at 16:43, Daniel Fuchs wrote: > > Hi, > > After discussion with Chris & Alan I have slightly reworded > the API documentation, and ensured the MultiExchange is only > weakly referenced from the MinimalFuture to avoid the risk of > pinning the exchange in memory after i

Re: RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Daniel Fuchs
Hi Rahul, The code changes look good to me but the uriDecoderTest needs some working. The reason is that the decoded path is cached in the URI, so only the first call to getPath() will decode it. The following calls will just return the cached value. I also believe you should remove the inner lo

Re: RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Claes Redestad
On 2020-08-27 16:11, Alan Bateman wrote: For the micro, I'm curious if iterations is needed. I'd say the canonical JMH way of doing these might be something as simple as this: @Benchmark public URI encodeURI() throws URISyntaxException { return new URI("http", "\u00A0", "\u

Re: RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Alan Bateman
On 27/08/2020 14:11, Rahul Yadav wrote: Hello, Request to have my fix reviewed for issue: JDK-8245308:  Replace ThreadLocalCoders decoder/encoder cache in java.net.URI. This fix updates java.net.URI, replaces the ThreadLocalCoders optimization. The benchmark results indicate no impact, opti

RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

2020-08-27 Thread Rahul Yadav
Hello, Request to have my fix reviewed for issue: JDK-8245308:  Replace ThreadLocalCoders decoder/encoder cache in java.net.URI. This fix updates java.net.URI, replaces the ThreadLocalCoders optimization. The benchmark results indicate no impact, optimization can be replaced.The results of