[10] RFR: 8177631: Outdated performance advice in StringCoding
Xueming Shen
xueming.shen at oracle.com
Mon Apr 3 15:29:27 UTC 2017
+1
On 4/3/17, 7:31 AM, Claes Redestad wrote:
> Hi,
>
> Class.getClassLoader0 was once an expensive native operation, but
> since JDK-6642881
> was fixed it is now a simple getter, retrieving a final field injected
> during class load.
> Thus the advice in StringCoding that getClass().getClassLoader0 is
> expensive should be
> removed.
>
> Webrev: http://cr.openjdk.java.net/~redestad/8177631/jdk.01/
> Bugs: https://bugs.openjdk.java.net/browse/JDK-8177631
>
> Thanks!
>
> /Claes
More information about the core-libs-dev
mailing list