[jdk21u-dev] Integrated: 8321206: Make Locale related system properties `StaticProperty`

Ben Taylor btaylor at openjdk.org
Thu Aug 15 17:25:54 UTC 2024


On Mon, 12 Aug 2024 19:56:09 GMT, Ben Taylor <btaylor at openjdk.org> wrote:

> Clean backport of change to make Locale system properties static. Change passes all tier 1 tests locally on x86_64 linux.
> 
> From the original PR:
>>Currently, Locale-related system properties, such as user.language or user.country, are initialized when the Locale class is loaded. Making them static properties is safer than relying on the Locale class loading timing, which could potentially be changed depending on the implementation.
> 
> This change also makes [JDK-8321940](https://bugs.openjdk.org/browse/JDK-8321940) clean, which will improve maintainability by reducing the number of manually curated `ADD_EXCL` entries in `cdsHeapVerifier.cpp`.

This pull request has now been integrated.

Changeset: a3cd6d6b
Author:    Ben Taylor <btaylor at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/a3cd6d6b916f7d8c03cd4b59324a6da11df467eb
Stats:     69 lines in 3 files changed: 49 ins; 7 del; 13 mod

8321206: Make Locale related system properties `StaticProperty`

Backport-of: 0c178beb69c4c5fc3e92621340748e42d017d458

-------------

PR: https://git.openjdk.org/jdk21u-dev/pull/912


More information about the jdk-updates-dev mailing list