Skip to content

Commit 95af7c8

Browse files
author
duke
committed
Backport 89ee1a5517ea1e3915f4362ada3d2086b63c107e
1 parent 63a800d commit 95af7c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ void VM_Version::initialize() {
158158
if (FLAG_IS_DEFAULT(OnSpinWaitInstCount)) {
159159
FLAG_SET_DEFAULT(OnSpinWaitInstCount, 2);
160160
}
161+
if (FLAG_IS_DEFAULT(CodeEntryAlignment) &&
162+
(_model == CPU_MODEL_AMPERE_1A || _model == CPU_MODEL_AMPERE_1B)) {
163+
FLAG_SET_DEFAULT(CodeEntryAlignment, 32);
164+
}
161165
}
162166

163167
// ThunderX

0 commit comments

Comments
 (0)