RFR: 8221701: Archive constant BaseLocales
Claes Redestad
claes.redestad at oracle.com
Mon Apr 1 15:46:12 UTC 2019
Hi,
by archiving constant BaseLocale objects, we can simplify (and speed up)
creation of the constant Locale objects in java.util.Locale which are
unconditionally created during startup.
Bug: https://bugs.openjdk.java.net/browse/JDK-8221701
Webrev: http://cr.openjdk.java.net/~redestad/8221701/open.00/
Testing: tier1-3, along with patches for JDK-8221723 and
JDK-8221724
Performance: a small reduction in bytecode executed during startup (-6k,
or ~1% of bootstrap), a small reduction in number of classes loaded
on small applications (458 -> 451 on a simple Hello World).
Thanks!
/Claes
More information about the core-libs-dev
mailing list