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

Improve BitMap::iterate

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: