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

CompilerPhaseTypeHelper::to_bitmask should operate on uint64_t

    XMLWordPrintable

Details

    • b10
    • 19
    • b16

    Description

      JDK-8281505 added this helper method that operates on uint64_t masks, but it operates on ints. So it is subtly broken on 32-bit platforms, for example. SonarCloud complains about it: "The result of the left shift is undefined due to shifting by '32', which is greater or equal to the width of type 'int'"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: