RFR: 8221701: Archive constant BaseLocales
naoto.sato at oracle.com
Tue Apr 2 15:36:57 UTC 2019
Thank you for looking into this. I remember we discussed this before.
One comment I have is that, currently the archive map seems to have two
level structure, i.e, lang, then country. There is another basic element
that consists of a locale, that is script. At the moment, there is not a
constant that has script in it, but if we wanted to have a constant
locale, say zh-Hans, it cannot be archived. It's ok for now, but can it
be extended if we want in the future, without any compatibility
On 4/2/19 3:14 AM, Claes Redestad wrote:
> On 2019-04-01 17:46, Claes Redestad wrote:
>> 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
> These RFEs have now been pushed, unblocking this RFE.
More information about the core-libs-dev