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

C2: Assignment in conditional in loopUnswitch.cpp

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 15, 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      Static code analysis complains there is the assignment in the conditional here:

      bool CountedLoopReserveKit::create_reserve() {
        ...
        return _has_reserved = true;
      }

      I believe the assignment should be explicit here. Code was introduced with JDK-8136725.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: