JDK-8041957 : -XX:UseAVX=0 cause assert(UseAVX) failed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8u20,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: x86
  • Submitted: 2014-04-25
  • Updated: 2019-09-13
  • Resolved: 2014-04-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u20Fixed 9 b14Fixed
$ java -XX:UseAVX=0 -version
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/assembler_x86.cpp:1769
# A fatal error has been detected by the Java Runtime Environment:
#  Internal Error (src/cpu/x86/vm/assembler_x86.cpp:1769), pid=7986, tid=2
#  assert(UseAVX) failed: 
# JRE version:  (9.0-b10) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b62-fastdebug mixed mode solaris-amd64 compressed oops)

On a machine which supports AVX we use vmovdqu() in generate_get_cpu_info(). We should use VM_Version::supports_avx() in the assert.

ILW=Assert, sometimes, none=MMH=P3