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

Don't return booleans from methods returning pointers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: hs23
    • Fix Version/s: hs23
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The methods constantPoolOopDesc::method_at_if_loaded() and CountedLoopNode::match_incr_with_optional_truncation() both have "return false" statements even though their actual return values are pointers (methodOop and Node*).

        This is wrong and it will cause builds to fail with GCC 4.7.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  brutisso Bengt Rutisson (Inactive)
                  Reporter:
                  brutisso Bengt Rutisson (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: