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

C2: Fix UB of jlong overflow in PhaseIdealLoop::is_counted_loop()

XMLWordPrintable

    • b17

        The computation of `final_correction` in `is_counted_loop()` could overflow which is UB. I don't think that any compiler would produce a wrong result. But we should still fix this UB.

              chagedorn Christian Hagedorn
              chagedorn Christian Hagedorn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: