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

Rename BitMap search functions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • None
    • b14

      BitMap currently provides get_next_{one,zero}_offset and get_next_one_offset_aligned_right. This is very nearly the last lingering use of "offset" terminology that we've been eliminating.

      Also, gen-zgc needs functions that find the last bit / search from the end, and the return value is awkward for that with the current naming.

      Propose to replace get_next_{one,zero}_offset with find_first_{set,clear}_bit, with the intent of later adding find_last_{set,clear}_bit. All have the same not-found value of the end of the specified range.

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

              Created:
              Updated:
              Resolved: