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

C2 compilation fails with assert "non-reduction loop contains reduction nodes"

    XMLWordPrintable

Details

    • b18

    Backports

      Description

        Similar to JDK-8286177:

        # Internal Error (/oracle/jdk3/open/src/hotspot/share/opto/superword.cpp:2452), pid=1970381, tid=1970394
        # assert(!lpt()->has_reduction_nodes() || cl->is_reduction_loop()) failed: non-reduction loop contains reduction nodes
        #
        # JRE version: Java(TM) SE Runtime Environment (20.0) (fastdebug build 20-internal-2022-07-25-1155399.tobias...)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-internal-2022-07-25-1155399.tobias..., compiled mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x1a4948e] SuperWord::output()+0xc0e

        Current CompileTask:
        C2: 305 31 b 4 Test::mainTest (617 bytes)

        Stack: [0x00007f294ad5d000,0x00007f294ae5e000], sp=0x00007f294ae57e00, free space=1003k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x1a4948e] SuperWord::output()+0xc0e
        V [libjvm.so+0x1a4c4b2] SuperWord::transform_loop(IdealLoopTree*, bool)+0x262
        V [libjvm.so+0x14ffed2] PhaseIdealLoop::build_and_optimize()+0x12b2
        V [libjvm.so+0xb1c5e3] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x293
        V [libjvm.so+0xb18e37] Compile::Optimize()+0xda7
        V [libjvm.so+0xb1b020] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x15c0
        V [libjvm.so+0x925373] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x683
        V [libjvm.so+0xb2a138] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xbb8
        V [libjvm.so+0xb2b068] CompileBroker::compiler_thread_loop()+0x638
        V [libjvm.so+0x10a5c88] JavaThread::thread_main_inner()+0x238
        V [libjvm.so+0x1ada4e0] Thread::call_run()+0x100
        V [libjvm.so+0x17974a4] thread_native_entry(Thread*)+0x104

        Attachments

          1. FuzzerUtils.java
            13 kB
          2. hs_err_pid31368.log
            79 kB
          3. hs_err_pid45332.log
            79 kB
          4. Test.java
            9 kB
          5. Test-1.java
            7 kB
          6. Test-2.java
            8 kB

          Issue Links

            Activity

              People

                rcastanedalo Roberto Castaneda Lozano
                thartmann Tobias Hartmann
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: