From 89ee1a5517ea1e3915f4362ada3d2086b63c107e Mon Sep 17 00:00:00 2001 From: Liming Liu Date: Thu, 9 Jan 2025 23:38:20 +0000 Subject: [PATCH] 8343978: Update the default value of CodeEntryAlignment for Ampere-1A and 1B Reviewed-by: dlong, kvn --- src/hotspot/cpu/aarch64/vm_version_aarch64.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp index 87c7862e250..418e5145f71 100644 --- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp +++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp @@ -158,6 +158,10 @@ void VM_Version::initialize() { if (FLAG_IS_DEFAULT(OnSpinWaitInstCount)) { FLAG_SET_DEFAULT(OnSpinWaitInstCount, 2); } + if (FLAG_IS_DEFAULT(CodeEntryAlignment) && + (_model == CPU_MODEL_AMPERE_1A || _model == CPU_MODEL_AMPERE_1B)) { + FLAG_SET_DEFAULT(CodeEntryAlignment, 32); + } } // ThunderX