Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8281544

assert(VM_Version::supports_avx512bw()) failed for Tests jdk/incubator/vector/

    XMLWordPrintable

Details

    • b11

    Backports

      Description

        Running jdk/incubator/vector/ Tests with JVM Flags

        -XX:UseAVX=3 -XX:+UnlockDiagnosticVMOptions -XX:+UseKNLSetting -XX:+UnlockExperimentalVMOptions -XX:+UseZGC

        triggers this assert from src/hotspot/cpu/x86/assembler_x86.cpp.
        When reproducing this make sure the machine has AVX3 support, else the code automatically reverts to AVX2 and does not end up triggering the assert.

        In particular, I have seen these tests fail:
        jdk/incubator/vector/VectorMaxConversionTests.java
        jdk/incubator/vector/Vector512ConversionTests.java
        jdk/incubator/vector/Vector256ConversionTests.java
        jdk/incubator/vector/Vector128ConversionTests.java
        jdk/incubator/vector/Long512VectorTests.java
        jdk/incubator/vector/Long512VectorLoadStoreTests.java
        jdk/incubator/vector/Int512VectorTests.java
        jdk/incubator/vector/Int512VectorLoadStoreTests.java
        jdk/incubator/vector/Float512VectorTests.java
        jdk/incubator/vector/Float512VectorLoadStoreTests.java
        jdk/incubator/vector/Double512VectorTests.java
        jdk/incubator/vector/Double512VectorLoadStoreTests.java


        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (src/hotspot/cpu/x86/assembler_x86.cpp:2577), pid=21597, tid=21784
        # Error: assert(VM_Version::supports_avx512bw()) failed
        #
        # JRE version: Java(TM) SE Runtime Environment (19.0) (fastdebug build 19-internal+0-2022-02-09-1405029.emanuel.peter.jdk)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-internal+0-2022-02-09-1405029.emanuel.peter.jdk, mixed mode, sharing, compressed class ptrs, z gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x6a44f4] Assembler::kmovql(Address, KRegisterImpl*)+0x194
        #
        # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to xxx)
        #
        # If you would like to submit a bug report, please visit:
        # https://bugreport.java.com/bugreport/crash.jsp
        #


        Current CompileTask:
        C2: 6215 1774 jdk.incubator.vector.FloatVector$FloatSpecies::maskAll (88 bytes)

        Stack: [0x00007efd83afa000,0x00007efd83bfb000], sp=0x00007efd83bf5870, free space=1006k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x6a44f4] Assembler::kmovql(Address, KRegisterImpl*)+0x194
        V [libjvm.so+0x1aaf4b8] ZSaveLiveRegisters::ZSaveLiveRegisters(MacroAssembler*, ZLoadBarrierStubC2*)+0x578
        V [libjvm.so+0x1aa2291] ZBarrierSetAssembler::generate_c2_load_barrier_stub(MacroAssembler*, ZLoadBarrierStubC2*) const+0x51
        V [libjvm.so+0x1ab2332] ZBarrierSetC2::emit_stubs(CodeBuffer&) const+0x112
        V [libjvm.so+0x164d38c] PhaseOutput::fill_buffer(CodeBuffer*, unsigned int*)+0x2d6c
        V [libjvm.so+0xa9672b] Compile::Code_Gen()+0x42b
        V [libjvm.so+0xa9bfcb] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x164b
        V [libjvm.so+0x8b29f9] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x669
        V [libjvm.so+0xaabdd8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc88
        V [libjvm.so+0xaacbb8] CompileBroker::compiler_thread_loop()+0x668
        V [libjvm.so+0x193867a] JavaThread::thread_main_inner()+0x25a
        V [libjvm.so+0x19409c0] Thread::call_run()+0x100
        V [libjvm.so+0x1623cb4] thread_native_entry(Thread*)+0x104

        Attachments

          Issue Links

            Activity

              People

                epeter Emanuel Peter
                epeter Emanuel Peter
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: