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

BCEscapeAnalyzer::ArgumentMap::set_intersect() is incorrect

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 8u192, 9, 10, 11, 12, 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      The method has the same implementation as set_union():

        void set_union(const ArgumentMap &am) { _bits |= am._bits; }
        void set_intersect(const ArgumentMap &am) { _bits |= am._bits; }

      Obviously, set_intersect() is wrong, should be:

        void set_intersect(const ArgumentMap &am) { _bits &= am._bits; }

      It did not blow up anything, because it has no user.

        Attachments

          Activity

            People

            • Assignee:
              zgu Zhengyu Gu
              Reporter:
              zgu Zhengyu Gu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: