Re-enable SIMD operations on JDK 24 (#125484) (#125494)

This commit is contained in:
Simon Cooper 2025-03-24 14:22:47 +00:00 committed by GitHub
parent 479ff37448
commit dd3b980e8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ public abstract class ESVectorizationProvider {
static ESVectorizationProvider lookup(boolean testMode) { static ESVectorizationProvider lookup(boolean testMode) {
final int runtimeVersion = Runtime.version().feature(); final int runtimeVersion = Runtime.version().feature();
assert runtimeVersion >= 21; assert runtimeVersion >= 21;
if (runtimeVersion <= 23) { if (runtimeVersion <= 24) {
// only use vector module with Hotspot VM // only use vector module with Hotspot VM
if (Constants.IS_HOTSPOT_VM == false) { if (Constants.IS_HOTSPOT_VM == false) {
logger.warn("Java runtime is not using Hotspot VM; Java vector incubator API can't be enabled."); logger.warn("Java runtime is not using Hotspot VM; Java vector incubator API can't be enabled.");