--- old/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp 2020-07-08 13:30:54.738729582 +0800 +++ new/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp 2020-07-08 13:30:54.486728140 +0800 @@ -449,6 +449,15 @@ UseMontgomerySquareIntrinsic = true; } + int min_vector_size = 8; + + if (!FLAG_IS_DEFAULT(MaxVectorSize)) { + if (MaxVectorSize < min_vector_size) { + warning("MaxVectorSize must be at least %i on this platform", min_vector_size); + FLAG_SET_DEFAULT(MaxVectorSize, min_vector_size); + } + } + if (FLAG_IS_DEFAULT(OptoScheduling)) { OptoScheduling = true; }