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

C2: assert(outer->outcnt() >= phis + 2 && outer->outcnt() <= phis + 2 + stores + 1) failed: only phis

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood

      Description

      # Internal Error (.../src/hotspot/share/opto/loopnode.cpp:1859), pid=63270, tid=23299
      # assert(outer->outcnt() >= phis + 2 && outer->outcnt() <= phis + 2 + stores + 1) failed: only phis

      Current CompileTask:
      C2: 8242 1612 b BackedgeNodeWithOutOfLoopControl::test (75 bytes)

      Stack: [0x000070000ebff000,0x000070000ecff000], sp=0x000070000ecfa9d0, free space=1006k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x11787d5] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x6d5
      V [libjvm.dylib+0x1178f0b] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x3b
      V [libjvm.dylib+0x61da3f] report_vm_error(char const*, int, char const*, char const*, ...)+0x13f
      V [libjvm.dylib+0xca51a7] LoopNode::verify_strip_mined(int) const+0xf37
      V [libjvm.dylib+0x5cdae1] Compile::final_graph_reshaping_impl(Node*, Final_Reshape_Counts&)+0x581
      V [libjvm.dylib+0x5d1bdc] Compile::final_graph_reshaping_walk(Node_Stack&, Node*, Final_Reshape_Counts&)+0x33c
      V [libjvm.dylib+0x5ca3df] Compile::final_graph_reshaping()+0x2cf
      V [libjvm.dylib+0x5c2037] Compile::Optimize()+0x387
      V [libjvm.dylib+0x5c05b9] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x17f9


      (lldb) p outer->dump(-1)
       333 OuterStripMinedLoop === 333 324 332 [[ 333 490 505 506 ]]
       490 CountedLoop === 490 333 290 [[ 329 279 481 482 490 491 492 493 272 ]] inner stride: 8 main of N490 strip mined !orig=[462],[436],[334],[318],[255] !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       505 Phi === 333 60 280 [[ 491 516 509 519 493 ]] #int:1..100001:www !orig=491,467,434,350,[348],262 !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       506 Phi === 333 386 279 [[ 492 ]] #memory Memory: @int[int:10]:NotNull:exact+any *,iid=40, idx=9; !orig=492,466,435,[338],[261] !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65

      (lldb) p phis
      (uint) $3 = 3

      (lldb) p inner->dump(-1)
       490 CountedLoop === 490 333 290 [[ 329 279 481 482 490 491 492 493 272 ]] inner stride: 8 main of N490 strip mined !orig=[462],[436],[334],[318],[255] !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       329 CountedLoopEnd === 490 518 [[ 330 290 ]] [lt] P=0.900000, C=-1.000000 !orig=[289] !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:5 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       279 StoreI === 490 272 89 277 [[ 492 282 366 506 375 ]] @int[int:>=0]:exact+any *, idx=6; Memory: @int[int:10]:NotNull:exact[4] *,iid=40, idx=9; !orig=442 !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:25 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       481 LoadI === 490 482 89 [[ 277 ]] @int[int:>=0]:exact+any *, idx=6; #int !orig=[457],[427],[276] !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:22 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       482 StoreI === 490 492 82 483 [[ 272 481 ]] @int[int:>=0]:exact+any *, idx=6; Memory: @int[int:10]:NotNull:exact[3] *,iid=40, idx=9; !orig=[458],[428],272 !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:16 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       491 Phi === 490 505 280 [[ 488 ]] #int:1..100001:www !orig=467,434,350,[348],262 !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       492 Phi === 490 506 279 [[ 482 ]] #memory Memory: @int[int:10]:NotNull:exact+any *,iid=40, idx=9; !orig=466,435,[338],[261] !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       493 Phi === 490 505 280 [[ 280 489 ]] #int:1..108001:www #tripcount !orig=465,437,262 !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:8 BackedgeNodeWithOutOfLoopControl::test @ bci:65
       272 StoreI === 490 482 82 270 [[ 279 ]] @int[int:>=0]:exact+any *, idx=6; Memory: @int[int:10]:NotNull:exact[3] *,iid=40, idx=9; !jvms: BackedgeNodeWithOutOfLoopControl::accessArrayVariables @ bci:16 BackedgeNodeWithOutOfLoopControl::test @ bci:65

        Attachments

        1. 8255120_phis.png
          8255120_phis.png
          22 kB
        2. hs_err_pid63270.log
          87 kB
        3. replay_pid63270.log
          113 kB

          Issue Links

            Activity

              People

              • Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                vlivanov Vladimir Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: