mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-19 07:29:08 +00:00
8355739: AssertionError: Invalid CPU feature name after 8353786
Reviewed-by: vlivanov, shade, mdoerr
This commit is contained in:
parent
6a0c24f9db
commit
edf8ce8db1
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user