Skip to content

Commit 010833d

Browse files
liminglivPaul Hohensee
authored andcommitted
8343978: Update the default value of CodeEntryAlignment for Ampere-1A and 1B
Backport-of: 89ee1a5517ea1e3915f4362ada3d2086b63c107e
1 parent ff59e5b commit 010833d

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)