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

C2: Assignment in conditional in loopUnswitch.cpp

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 11, 15, 16
    • 16
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: