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

C2 conditonal move optimization might create broken graph

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8, 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b31
    • Verification:
      Verified

      Backports

        Description

        Attached test case fails with:

        # Internal Error (/home/rwestrel/aarch64-jdk8u-shenandoah/hotspot/src/share/vm/opto/loopnode.cpp:3579), pid=6922, tid=0x00007f4472cc4700
        # assert(false) failed: Bad graph detected in build_loop_late

        PhaseIdealLoop::conditional_move() creates a CMoveI node, updates the control of its inputs but not of a dependent data node. A following split thru phi leads to a broken graph.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  roland Roland Westrelin
                  Reporter:
                  roland Roland Westrelin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: