Integrated: 8348880: Replace ConcurrentMap with AtomicReferenceArray for ZoneOffset.QUARTER_CACHE
Shaojin Wen
swen at openjdk.org
Thu Jan 30 15:16:04 UTC 2025
On Tue, 28 Jan 2025 16:11:53 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.
This pull request has now been integrated.
Changeset: 3f8a8754
Author: Shaojin Wen <swen at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3f8a875497c0e8356f9104e32aa801b879c7b941
Stats: 29 lines in 2 files changed: 22 ins; 0 del; 7 mod
8348880: Replace ConcurrentMap with AtomicReferenceArray for ZoneOffset.QUARTER_CACHE
Reviewed-by: naoto, liach
-------------
PR: https://git.openjdk.org/jdk/pull/23337
More information about the core-libs-dev
mailing list