<i18n dev> RFR: 8301552: Use AtomicReferenceArray for caching instead of CHM in ZoneOffset [v5]

Per Minborg pminborg at openjdk.org
Thu Feb 2 15:13:11 UTC 2023


On Thu, 2 Feb 2023 09:26:55 GMT, j3graham <duke at openjdk.org> wrote:

>> We can but that entails special handling to ensure thread-safety. I will provide such a solution. Thanks.
>
> If you need the thread-safety, perhaps sticking with `AtomicReferenceArray` is a simpler solution than the regular array one.

As I used a regular array, I realized I could provide better performance with not much added complexity. See the use of `@Stable` for the components in the array.

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

PR: https://git.openjdk.org/jdk/pull/12346


More information about the i18n-dev mailing list