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

count_trailing_zeros doesn't handle 64-bit values on 32-bit JVM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b02

      Description

      count_trailing_zeros is defined only for uintx arguments, which means it doesn't work properly for a 64-bit argument on 32-bit JVMs, since the value will be downcast to 32-bit.

      We should consider making this a template function.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: