[10] RFR: 8177631: Outdated performance advice in StringCoding

Claes Redestad claes.redestad at oracle.com
Mon Apr 3 14:31:35 UTC 2017


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