diff --git a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp index 1096a1b0fc6..0683202515c 100644 --- a/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp +++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.hpp @@ -69,9 +69,9 @@ protected: // 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();