Skip to content

Commit a4cf191

Browse files
author
Jatin Bhateja
committedSep 17, 2024
8339793: Fix incorrect APX feature enabling with -XX:-UseAPX
Reviewed-by: kvn, thartmann, sviswanathan
1 parent 3e03e66 commit a4cf191

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/hotspot/cpu/x86/vm_version_x86.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,10 @@ void VM_Version::get_processor_features() {
10451045
FLAG_SET_DEFAULT(UseAPX, apx_supported ? true : false);
10461046
}
10471047

1048+
if (!UseAPX) {
1049+
_features &= ~CPU_APX_F;
1050+
}
1051+
10481052
if (UseAVX < 2) {
10491053
_features &= ~CPU_AVX2;
10501054
_features &= ~CPU_AVX_IFMA;

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Sep 17, 2024

@openjdk-notifier[bot]
Please sign in to comment.