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

C1: LIRGenerator::move_to_phi can't deal with illegal phi

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b114

      Description

      C1 can't deal with illegal Phi functions which propagate into other Phi functions.
      Phi functions get illegal when their inputs have different types.
      This was observed when we activated the JVMTI capability can_access_local_variables and restored the old behavior of BlockBegin::try_merge: invalidate the phi functions instead of bailing out.
      The function LIRGenerator::move_to_phi crashes in this case.

      Proposed fix is to bail out as this case happens extremely rarely. Seems like it was never observed with the new behavior of BlockBegin::try_merge.

        Attachments

          Activity

            People

            • Assignee:
              mdoerr Martin Doerr
              Reporter:
              mdoerr Martin Doerr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: