BitMap::count_one_bits should use population_count

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 14
    • Affects Version/s: 14
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: