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

C2: some vectorapi tests fail assert "Not monotonic" with flag -XX:TypeProfileLevel=222

    XMLWordPrintable

Details

    • b20

    Backports

      Description

        On Platforms: windows-x64, macosx-aarch64, macosx-x64, linux-aarch64

        Tests:
        compiler/vectorapi/TestMaskedMacroLogicVector.java
        compiler/vectorapi/VectorLogicalOpIdentityTest.java
        compiler/vectorapi/VectorReplicateLongSpecialImmTest.java
        compiler/vectorapi/AllBitsSetVectorMatchRuleTest.java

        Using extra flag: -XX:TypeProfileLevel=222

        This bug is probably intermittent.

        Example assert failure:
        Platform: macosx-x64
        Test: compiler/vectorapi/TestMaskedMacroLogicVector.java

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (.../open/src/hotspot/share/opto/phaseX.cpp:1741), pid=28525, tid=42755
        # assert(t->meet(t0) == t) failed: Not monotonic
        #
        # JRE version: Java(TM) SE Runtime Environment (20.0) (fastdebug build 20-internal-2022-09-07-1816024.emanuel.peter.fork3-jdk)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-internal-2022-09-07-1816024.emanuel.peter.fork3-jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
        # Core dump will be written. Default location: core.28525
        #


        --------------- T H R E A D ---------------

        Current thread (0x00007fa0e5826c10): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=42755, stack(0x000070000b087000,0x000070000b187000)]


        Current CompileTask:
        C2: 2896 490 b jdk.internal.vm.vector.VectorSupport$VectorPayload::getPayload (8 bytes)

        Stack: [0x000070000b087000,0x000070000b187000], sp=0x000070000b183100, free space=1008k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.dylib+0x12b90a9] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x6e9 (phaseX.cpp:1741)
        V [libjvm.dylib+0x12b972b] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x3b
        V [libjvm.dylib+0x6cda5d] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
        V [libjvm.dylib+0xfe0ff4] PhaseCCP::analyze()+0x304
        V [libjvm.dylib+0x6368cb] Compile::Optimize()+0xe6b
        V [libjvm.dylib+0x634316] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1786
        V [libjvm.dylib+0x51f3f7] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x167
        V [libjvm.dylib+0x651b22] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x702
        V [libjvm.dylib+0x651218] CompileBroker::compiler_thread_loop()+0x288
        V [libjvm.dylib+0xa1927e] JavaThread::thread_main_inner()+0x2be
        V [libjvm.dylib+0x120a8e7] Thread::call_run()+0x177
        V [libjvm.dylib+0xf853af] thread_native_entry(Thread*)+0x14f
        C [libsystem_pthread.dylib+0x6109] _pthread_start+0x94
        C [libsystem_pthread.dylib+0x1b8b] thread_start+0xf

        Attachments

          Issue Links

            Activity

              People

                jbhateja Jatin Bhateja
                epeter Emanuel Peter
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: