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

C2: Assignment in conditional in loopUnswitch.cpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 11, 15, 16
    • hotspot
    • b13

      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.

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

              Created:
              Updated:
              Resolved: