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

Code IfNode::fold_compares_helper more defensively

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b64
    • Introduced In Version:
      9
    • Resolved In Build:
      b11

      Backports

        Description

        As JDK-8261914 indicates, there are cases that break the internal asserts in IfNode::fold_compares_helper, code added by JDK-8073480 in JDK 9. Unfortunately, release builds would happily miscompile when that happens. It would be better to code IfNode::fold_compares_helper more defensively, so it bails when asserts are violated. This implicitly works around the bug in JDK-8261914. The goal for this limited workaround is to be trivially backportable in order to quickly unbreak 11u, 16u and 17.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: