From 0eede1c2ebf23ef4cd4dd74f31beccccfd78d6fc Mon Sep 17 00:00:00 2001 From: George Adams Date: Tue, 26 May 2026 17:18:51 +0000 Subject: [PATCH] 8385425: AArch64: Comment re set_and_get_current_sve_vector_length() is misleading Reviewed-by: aph, macarte --- src/hotspot/cpu/aarch64/vm_version_aarch64.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();