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

BitMap::count_one_bits should use population_count

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • hotspot
    • gc
    • b27

        BitMap::count_one_bits has a handrolled implementation of population_count, generating a 256-element lookup on first use and doing byte-by-byte lookup. This is similar to what RegMask did before introduction of a population_count utility function in JDK-8217519

        BitMap needs the population_count to allow for both 32- and 64-bit unsigned integers, while the current population_count only accepts 32-bit unsigned integers.

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

                Created:
                Updated:
                Resolved: