RFR: 8348880: Replace ConcurrentMap with AtomicReferenceArray for ZoneOffset.QUARTER_CACHE [v8]

Chen Liang liach at openjdk.org
Wed Jan 29 15:10:48 UTC 2025


On Wed, 29 Jan 2025 06:42:02 GMT, Shaojin Wen <swen at openjdk.org> wrote:

>> ZoneOffset.MINUTES_15_CACHE uses AtomicReferenceArray to replace ConcurrentMap to avoid object allocation caused by boxing from int to Integer during access.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   rename to test_quarter_cache

test/jdk/java/time/test/java/time/TestZoneOffset.java line 1:

> 1: /*

Can you update the copyright year in this file?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23337#discussion_r1934066736


More information about the core-libs-dev mailing list