Skip to content

Commit 03ff99a

Browse files
committed
Revert "JBR-8038 8345296: AArch64: VM crashes with SIGILL when prctl is disallowed"
This reverts commit 8b0b738.
1 parent 18c3fd4 commit 03ff99a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/hotspot/cpu/aarch64/vm_version_aarch64.cpp

+1-13
Original file line numberDiff line numberDiff line change
@@ -440,19 +440,7 @@ void VM_Version::initialize() {
440440
}
441441

442442
if (UseSVE > 0) {
443-
int vl = get_current_sve_vector_length();
444-
if (vl < 0) {
445-
warning("Unable to get SVE vector length on this system. "
446-
"Disabling SVE. Specify -XX:UseSVE=0 to shun this warning.");
447-
FLAG_SET_DEFAULT(UseSVE, 0);
448-
} else if ((vl == 0) || ((vl % FloatRegister::sve_vl_min) != 0) || !is_power_of_2(vl)) {
449-
warning("Detected SVE vector length (%d) should be a power of two and a multiple of %d. "
450-
"Disabling SVE. Specify -XX:UseSVE=0 to shun this warning.",
451-
vl, FloatRegister::sve_vl_min);
452-
FLAG_SET_DEFAULT(UseSVE, 0);
453-
} else {
454-
_initial_sve_vector_length = vl;
455-
}
443+
_initial_sve_vector_length = get_current_sve_vector_length();
456444
}
457445

458446
// This machine allows unaligned memory accesses

0 commit comments

Comments
 (0)