From 8a3a51d38f43d5210113d88c868b0f8e8a9f38cc Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 3 Apr 2019 21:25:57 -0400 Subject: [PATCH] Allow AVX-512 on JDK 11+ We previously found a bug in the JVM where AVX-512 instructions could crash the JVM to crash with a segmentation fault. This bug impacted JDK 9 and JDK 10, but was most prominent on JDK 10 because AVX-512 was enabled there by default. In JDK 11, this bug is reported fixed so this commit restricts the disabling of AVX-512 to JDK 10 only. Since we no longer support JDK 10 for any versions that this commit will be integrated into (7.1, 8.0), we simply remove the disabling of this flag from the JVM options. --- distribution/src/config/jvm.options | 3 --- 1 file changed, 3 deletions(-) diff --git a/distribution/src/config/jvm.options b/distribution/src/config/jvm.options index 2b30d6a87b4a1..58fe4721723a6 100644 --- a/distribution/src/config/jvm.options +++ b/distribution/src/config/jvm.options @@ -117,6 +117,3 @@ ${error.file} # due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise # time/date parsing will break in an incompatible way for some date patterns and locals 9-:-Djava.locale.providers=COMPAT - -# temporary workaround for C2 bug with JDK 10 on hardware with AVX-512 -10-:-XX:UseAVX=2