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

Improve BitMap::iterate

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • None
    • b11

    Description

      BitMap::iterate could be improved by using count_trailing_zeros instead of looping over the individual bits in a word, much as was done for get_next_one_offset and friends by JDK-6735527. Rewriting it to use get_next_one_offset would likely both simplify it and make it faster.

      It used to be that the deprecated (and now removed) CMS GC was the only user of this function, so improving it wasn't a priority. But it's now being used by CDS (see JDK-8208658, for example), so may be worthwhile now.

      Attachments

        Issue Links

          Activity

            People

              kbarrett Kim Barrett
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: