RFR(S): 8145988: Use the raw methods of java.net.URI when possible

Claes Redestad claes.redestad at oracle.com
Tue Dec 22 13:40:20 UTC 2015


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