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 (seeJDK-8208658, for example), so may be worthwhile now.
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
- relates to
-
JDK-8251330 Reorder CDS archived heap to speed up relocation
- Resolved
-
JDK-6735527 Bitmap - speed up searches
- Resolved
-
JDK-8208658 Make CDS archived heap regions usable even if compressed oop encoding has changed
- Resolved