8355739: AssertionError: Invalid CPU feature name after 8353786

Reviewed-by: vlivanov, shade, mdoerr
This commit is contained in:
David Linus Briemann 2025-04-29 11:57:37 +00:00 committed by Martin Doerr
parent 6a0c24f9db
commit edf8ce8db1

View File

@ -42,6 +42,9 @@ import static jdk.internal.vm.vector.Utils.debug;
private static Set<String> getCPUFeatures() {
String featuresString = VectorSupport.getCPUFeatures();
debug(featuresString);
if (featuresString.equals("")) return Set.of();
String[] features = featuresString.toLowerCase(Locale.ROOT)
.split(",? "); // " " or ", " are used as a delimiter by JVM
assert validateFeatures(features);