RFR(S): 8145988: Use the raw methods of java.net.URI when possible
Chris Hegarty
chris.hegarty at oracle.com
Tue Dec 22 14:38:18 UTC 2015
Thanks for doing this Claes. The changes look good to me.
-Chris.
On 22 Dec 2015, at 13:40, Claes Redestad <claes.redestad at oracle.com> wrote:
> Hi,
>
> there are a number of cases where we check that the authority, query and fragment components of a URI is null. This simple patch changes some cases where we it's possible to instead use the getRawAuthority/-Query/... methods, which avoid some volatile loads and stores, which can reduce memory pressure.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8145988
> Webrev: http://cr.openjdk.java.net/~redestad/8145988/webrev.01
>
> Thanks!
>
> /Claes
More information about the core-libs-dev
mailing list