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

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • None
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: