diff --git a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp index c67455e6b79fd..76dba8b408ed9 100644 --- a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp +++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp @@ -70,9 +70,9 @@ class VM_Version : public Abstract_VM_Version { // Read additional info using OS-specific interfaces static void get_os_cpu_info(); - // Sets the SVE length and returns a new actual value or negative on error. - // If the len is larger than the system largest supported SVE vector length, - // the function sets the largest supported value. + // Set the SVE vector length to len. If the vector length cannot be + // changed to len, set the length to the largest possible value. + // Return the length that will be used, or -ve if an error occurred. static int set_and_get_current_sve_vector_length(int len); static int get_current_sve_vector_length();